docker使用遇到的问题
docker pull 报:failed to register layer: Error processing tar file(exit status 1): write /usr/lib64/libclangFrontend.a: no space left on device处理方法,参考:https://www.jianshu.com/p/8239d32f19e6
·
docker pull 报:failed to register layer: Error processing tar file(exit status 1): write /usr/lib64/libclangFrontend.a: no space left on device
处理方法,参考:https://www.jianshu.com/p/8239d32f19e6
docker run报:/usr/bin/bash: /usr/bin/bash: cannot execute binary file
docker run的时候报:/usr/bin/bash: /usr/bin/bash: cannot execute binary file
这个是因为Dockerfile的ENTRYPOINT中没有加-c,通过docker history XX --no-trunc查看Dockerfile,果然如此
手动创建Dockerfile,并添加内容
FROM dockername
MAINTAINER 111@qq.com
ENTRYPOINT ["/bin/bash", "-l", "-c"](base)
通过docker build -t dockername:tag . 重新构建镜像后,docker run成功
更多推荐
已为社区贡献2条内容
所有评论(0)