Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid publish opts format #4

Open
greendog opened this issue Jan 27, 2019 · 0 comments
Open

Invalid publish opts format #4

greendog opened this issue Jan 27, 2019 · 0 comments

Comments

@greendog
Copy link

greendog commented Jan 27, 2019

My .env file is:

AUTHN_URL=http://example.auth
...
...

I have an error here:

--publish ${AUTHN_URL##*:}:3000 \

docker: invalid publish opts format (should be name=value but got 'http://example.auth:3000').
See 'docker run --help'.

In the documentation: https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose I see:

docker run -p 127.0.0.1:80:8080/tcp ubuntu bash


This binds port 8080 of the container to TCP port 80 on 127.0.0.1 of the host machine. You can also specify udp and sctp ports. The Docker User Guide explains in detail how to manipulate ports in Docker.

I was able to run the Authn following way.
I'm change a authn file as:

docker run -it --rm \
  --publish 127.0.0.1:3000:3000 \

but now I have other error - a # form makes request to http://example.auth/accounts (without 3000 port)

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

No branches or pull requests

1 participant