zookeeper-docker
zookeeper-docker copied to clipboard
container start failed: /docker-entrypoint.sh: permission denied:unknown
Before you file an issue here, please keep in mind that your issue may be not related to the image itself. Please make sure that it is, otherwise report the issue upstream.
Expected behavior
container start success. Tell us what should happen.
Actual behavior
Tell us what happens instead.
Steps to reproduce the behavior
- build zookeeper 3.8.0 image on local machine
- start container instance with default config
- start failed
Tell us how to reproduce the issue.
System configuration
Please include as much relevant information as possible.
I have figured out the cause of the problem, docker packaging will not change the permissions of the file. It is because my local newly created docker-entrypoint.sh does not have executable permission. i think dockerfile can be hardened.
While it's possible to add RUN chmod +x /docker-entrypoint.sh
into the Dockerfile
I don't think it's worth an extra image layer. If you're building the image using a newly created docker-entrypoint.sh
please make sure it's executable on the host.