docker: Error response from daemon: OCI runtime create failed


docker运行发生错误

 
docker: Error response from daemon:
OCI runtime create failed: container_linux.go:380:
starting container process caused: exec: "docker-entrypoint.sh":
executable file not found in $PATH: unknown.
 
修改dockerfile
 
解决办法:
1、更改文件权限
dockerfile 添加 RUN chmod +x docker-entrypoint.sh
2、重新build镜像
# docker build -t postgres:v9.4.5


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM