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

Entrypoint and cmd are moving targets #5

Open
mpl opened this issue Jan 14, 2015 · 0 comments
Open

Entrypoint and cmd are moving targets #5

mpl opened this issue Jan 14, 2015 · 0 comments

Comments

@mpl
Copy link

mpl commented Jan 14, 2015

Hey,

not really your fault as it seems docker is constantly evolving, but basically your Dockerfile has the same problem as in https://github.com/tomparys/docker-skype-pulseaudio or moby/moby#5539 , i.e. on my machine (Docker version 1.1.1, build bd609d2),
docker run -p 127.0.0.1:2222:22 chrome
will fail with:
Extra argument /bin/bash.

The two possible workarounds are:

  1. replace ENTRYPOINT with CMD in the Dockerfile, or run with:
  2. docker run -p 127.0.0.1:2222:22 --entrypoint /bin/bash chrome -c "/usr/sbin/sshd -D"

kudos though, as I really needed something like that to test some HTTPS certs stuff.

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

No branches or pull requests

1 participant