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

docker run syntax in swarm example has changed #528

Closed
batwicket opened this issue Jul 14, 2016 · 2 comments
Closed

docker run syntax in swarm example has changed #528

batwicket opened this issue Jul 14, 2016 · 2 comments

Comments

@batwicket
Copy link

The Swarm example at https://docs.traefik.io/user-guide/swarm/ works for me with Docker 1.12.0-rc3 after i change:

docker $(docker-machine config mhs-demo0) run
-d
-p 80:80 -p 8080:8080
--net=my-net
-v /var/lib/boot2docker/:/ssl
traefik
-l DEBUG
-c /dev/null
--docker
--docker.domain traefik
--docker.endpoint tcp://$(docker-machine ip mhs-demo0):3376
--docker.tls
--docker.tls.ca /ssl/ca.pem
--docker.tls.cert /ssl/server.pem
--docker.tls.key /ssl/server-key.pem
--docker.tls.insecureSkipVerify
--docker.watch
--web

to:

docker $(docker-machine config mhs-demo0) run
-d
-p 80:80 -p 8080:8080
--net=my-net
-v /var/lib/boot2docker/:/ssl
traefik
-l DEBUG
-c /dev/null
--docker
--docker.domain=traefik
--docker.endpoint=tcp://$(docker-machine ip mhs-demo0):3376
--docker.tls
--docker.tls.ca=/ssl/ca.pem
--docker.tls.cert=/ssl/server.pem
--docker.tls.key=/ssl/server-key.pem
--docker.tls.insecureSkipVerify
--docker.watch
--web

@billglover
Copy link
Contributor

I have been able to replicate this issue. Will have a crack at addressing this now.

billglover added a commit to billglover/traefik that referenced this issue Oct 1, 2016
Prior to this fix the documentation for the swarm example included
syntax that would fail with the following error.

`Error : flag needs an argument: --docker.domain`

This fix specifies flags using the `=` between the flag name and value.

Tested on: Docker version 1.12.2-rc1, build 45bed2c, experimental
vdemeester added a commit that referenced this issue Oct 2, 2016
Fix syntax in Swarm example. Resolves #528
@emilevauge
Copy link
Member

Fixed by #707

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants