'How to run dockerd in the background without logs

I am using franela/dind image to get a bash:

docker run --rm --privileged -it franela/dind bash

*make sure to remove /etc/docker/daemon.json before running dockerd.

Inside it I ran dockerd and it start to print lots of logs:

WARN[2019-02-24T13:40:16.902536038Z] could not change group /var/run/docker.sock to docker: group docker not found 
INFO[2019-02-24T13:40:16.922239343Z] libcontainerd: started new docker-containerd process  pid=880
INFO[2019-02-24T13:40:16.922290278Z] parsed scheme: "unix"                         module=grpc
INFO[2019-02-24T13:40:16.922302876Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2019-02-24T13:40:16.922360290Z] ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/docker-containerd.sock 0  <nil>}]  module=grpc
INFO[2019-02-24T13:40:16.922373417Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2019-02-24T13:40:16.922423556Z] pickfirstBalancer: HandleSubConnStateChange: 0xc4203c96e0, CONNECTING  module=grpc
INFO[0000] starting containerd                           revision=468a545b9edcd5932818eb9de8e72413e616e86e version=v1.1.2
INFO[0000] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[0000] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1

I tried to run it without the logs but everything I tried didn't help:

# run as a background process
dockerd &  
# redirect the output to /dev/null
dockerd > /dev/null
# try to remove the logs with the --log-level switch
dockerd --log-level error  

How can I run the dockerd service without all these logs? make it in quite mode.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source