Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjonnh
Copy link

@bjonnh bjonnh commented Jul 2, 2014

....

@np
Copy link

np commented Jul 23, 2014

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

@Terr
Copy link

Terr commented Aug 2, 2014

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

@DiGitHubCap
Copy link

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

@nelaaro
Copy link

nelaaro commented Jan 23, 2019

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

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

Successfully merging this pull request may close these issues.

5 participants