Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

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

Open
josergc opened this issue Jan 10, 2017 · 1 comment
Open

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

josergc opened this issue Jan 10, 2017 · 1 comment

Comments

@josergc
Copy link

josergc commented Jan 10, 2017

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
Copy link

rhrpr commented Jul 6, 2017

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

RUN chmod +x /entrypoint.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants