Cannot restart container OCI runtime create failed: container_linux.go:367: starting container process caused: exec:: permission denied: unknown

Viewed 3052

Executing docker-compose up from Ubuntu 18 installed on Windows.

It's returning an error

ERROR: for image Cannot start service python: OCI runtime create failed:
container_linux.go:367: starting container process caused: exec: "./start.sh":
permission denied: unknown

The Dockerfile is just

FROM scratch
ADD ubuntu-bionic-core-cloudimg-amd64-root.tar.gz /

COPY start.sh ./
RUN chmod +x ./start.sh
CMD ["./start.sh"]
1 Answers

Something inside the host Ubuntu machine went awry.. had to do the following inside the host Ubuntu machine (not in docker build)

$ chmod +x start.sh

Rebuilt the images with no cache and started everything up again and it worked

$ docker-compose build --no-cache
$ docker-compose up
Related