1

I'm in the process of setting up a Docker Swarm cluster

Im on this step:

sudo docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

However, it looks like it's not deamonizing it (the program is still holding the screen)

How do I daemonize it?

limbo
  • 684
  • 9
  • 18
ealeon
  • 12,074
  • 24
  • 92
  • 173

1 Answers1

0

You need to make sure you run the daemon as a background process using nohup / &, using your example:

sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &

Note: docker daemon has been deprecated and this should be dockerd now.

This is no different than running any other Linux process in the background: How to run process as background and never die?

Community
  • 1
  • 1
abronan
  • 3,309
  • 4
  • 29
  • 38