Docker Community Forums

Share and learn in the Docker community.

How to start the docker daemon on Mac with -H option for swarm

(Jeanluca) #1

I’m trying to setup a docker swarm on my Macbook

I’m following this tutorial.

The 1) step

$> docker run --rm swarm create

Step 2) is the problem; start the docker daemon with -H. I’m using Docker beta for Mac which I start using the docker icon. I’m not using docker-machine or any of that.


$> $ docker -H tcp:// -d

How should I run the above command, because if I run it I get the following

 $> docker -H tcp:// -d
 flag provided but not defined: -d
 See 'docker --help'.

Setup a swarm - client not registering