How to run dockerd in the background without logs How to run dockerd in the background without logs docker docker

How to run dockerd in the background without logs


The logs from dockerd are printed out to stderr. You can redirect this to a file and run it in the background like this:

sudo docker run --privileged --rm -ti --entrypoint sh docker:18-dind
dockerd &> dockerd-logfile &# check out the log stream, to cancel use ctrl+ctail dockerd-logfile# just to see it's still runningps -ef

Of course you can also discard all logs similar to what you have already tried: dockerd &> /dev/null &