docker-skype-pulseaudio icon indicating copy to clipboard operation
docker-skype-pulseaudio copied to clipboard

Changed the ENTRYPOINT which was failing with a Extra argument /bin/bash...

Open bjonnh opened this issue 11 years ago • 4 comments

....

bjonnh avatar Jul 02 '14 16:07 bjonnh

I got the same error. Could this be a change of semantics in docker entrypoint/cmd. Docker version 1.1.0

np avatar Jul 23 '14 14:07 np

I needed to change this as well, before Docker 1.0 even I believe.

Terr avatar Aug 02 '14 18:08 Terr

I also needed to change this to get it to work properly. Docker version 1.0.1.

DiGitHubCap avatar Oct 11 '14 01:10 DiGitHubCap

I had a similar problem,

Attaching to docker_sshd_1
sshd_1  | Extra argument /usr/sbin/sshd.
docker_sshd_1 exited with code 1

After reading https://medium.freecodecamp.org/docker-entrypoint-cmd-dockerfile-best-practices-abc591c30e21 https://stackoverflow.com/questions/54328586/docker-run-fails-error-extra-argument-xxx/54328587#54328587

I ended up doing the following

ENTRYPOINT ["/usr/sbin/sshd" ]
# by defualt start sshd as backgournd daemon
CMD ["-D" ]

My container now starts up correctly and I can pass arguments to it at run time. docker run -p 2022:22 -it test:latest -d

nelaaro avatar Jan 23 '19 13:01 nelaaro