fedora-cloud / Fedora-Dockerfiles

Fedora Dockerfiles - No longer maintained. See: https://fedoraproject.org/wiki/Changes/Layered_Docker_Image_Build_Service
GNU General Public License v2.0
399 stars 253 forks source link

exec: \"/entrypoint.sh\": permission denied #249

Open josergc opened 7 years ago

josergc commented 7 years ago

I copied the files Dockerfile and entrypoint.sh from the "ssh" folder and I executed the commands docker build --rm -t testname/ssh . and docker run --name ssh -d -p 2200:22 testname/ssh as per the instructions but I get the message ae515b5bdeb84f4338694b2c97266f234f93cea0a6f81a0623312be0156727d6 /usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/entrypoint.sh\\\": permission denied\"\n". So that, it doesn't create the default user. Any idea about how to fix it?

rhrpr commented 7 years ago

try chmod +x on your entrypoint, i.e.

RUN chmod +x /entrypoint.sh