/dev/ptmx no space left on device

Article Directory

在使用 docker exec -it 容器id bash 进入容器时,出现错误:

1
OCI runtime exec failed: exec failed: container_linux.go:370:starting container process caused:open /dev/ptmx: no space left on device: unknown

这个问题主要是由于伪终端数量限制了,在相应的机器上,执行下面命令即可:

1
sysctl -w kernel.pty.max=8192

Author: KeyKernel

Permalink: http://keykernel.org/2021/12/13/ptmx-no-space-left-on-device/

文章默认使用 CC BY-NC-SA 4.0 协议进行许可,使用时请注意遵守协议。

Comments

Unable to load Disqus, please make sure your network can access.