docker启动报错 OCI runtime create failed: container_linux.go:380: starting container process

docker 启动报错

  • response from daemon: OCI runtime create failed: container_linux.go:380: starting container process
    docker启动报错 OCI runtime create failed: container_linux.go:380: starting container process_第1张图片

原因是某个启动脚本没有执行权限

解决

  • 给启动脚本执行权限 chmod +x entrypoint.sh
    1. docker-compose定义的容器启动脚本为entrypoint: ./entrypoint.sh, 这个脚本得在主机有可执行权限
    2. Dockerfile制作的镜像, CMD里的启动脚本也需要有执行权限

docker启动报错 OCI runtime create failed: container_linux.go:380: starting container process_第2张图片

docker启动报错 OCI runtime create failed: container_linux.go:380: starting container process_第3张图片

你可能感兴趣的:(软件,docker)