docker: Error response from daemon: OCI runtime create failed

created at 11-16-2021 views: 10

An error occurred when docker was running


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.

Modify dockerfile

solution

1. Change file permissions
add in dockerfile: RUN chmod +x docker-entrypoint.sh
2. Rebuild the image

# docker build -t postgres:v9.4.5
created at:11-16-2021
edited at: 11-16-2021: