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

flags have to be provided to docker run before the tag is provided, not after #86

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

Conversation

bh9
Copy link

@bh9 bh9 commented Jan 7, 2021

When calling docker run, the tag's position is important. Everything after the tag is interpreted as the command to be run in the container, so the tag must go after the flags, but before any command being run in the container. Here there is no command, so it should go last

ubuntu@bh9-elasticsearch-tableau-connector:~$ docker run elasticsearch-tableau-connector -p 3000:3000
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "-p": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled

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.

1 participant