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"]
Something inside the host Ubuntu machine, 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.