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
abd03deb4fbf06a1zf6aa112241da6c1

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.

So

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

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

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

Setup a swarm - client not registering