未分类
docker: process_linux.go:297: getting the final child’s pid from pipe caused \”EOF\””: unknown报错
在centos7上运行容器时报错:
1 2 |
docker run --rm -it python:3.6-slim sh docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:297: getting the final child's pid from pipe caused \"EOF\"": unknown. |
解决: 设置内核参数:
1 |
sysctl -w user.max_user_namespaces=15000 |
记录了允许创建的user namespace数量,我的centos7默认是0修改之后就好了。