title: docker container fail to connect to docker daemon if use /usr/sbin/init to start the container
body: <pre><code>sudo docker run -it --name="cms_docker_without_init_with_port" --privileged=true --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /home/cms/iris4_build:/home/cms/iris4_build -v /home/cms/jenkins:/home/cms/jenkins -v /home/cms/bin:/home/cms/bin -v /home/cms/cmn:/home/cms/cmn -v /home/cms/wls/bin:/home/cms/wls/bin -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -p 22000:22 artifact.oocl.com/fwk/cms_docker:1
  </code></pre>
  
  <p>I use above command to start the docker container, the cms_docker CAN connect to docker daemon in target VM. 
  There is contos7 inside the container, and I want to start the sshd service. I found in the docker official document, have to add <code>/usr/sbin/init</code> when start the container.</p>
  
  <p><a href="https://github.com/docker-library/docs/tree/master/centos#dockerfile-for-systemd-base-image" rel="nofollow noreferrer">https://github.com/docker-library/docs/tree/master/centos#dockerfile-for-systemd-base-image</a> </p>
  
  <p>So I add the <code>"/usr/sbin/init"</code> when start the container. The command is below:</p>
  
  <pre><code>sudo docker run -it --name="cms_docker_without_init_with_port" --privileged=true --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /home/cms/iris4_build:/home/cms/iris4_build -v /home/cms/jenkins:/home/cms/jenkins -v /home/cms/bin:/home/cms/bin -v /home/cms/cmn:/home/cms/cmn -v /home/cms/wls/bin:/home/cms/wls/bin -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -p 22000:22 artifact.oocl.com/fwk/cms_docker:1 /usr/sbin/init
  </code></pre>
  
  <p>But after I added <code>/usr/sbin/init</code> to start container, the cms_docker cannot connect to the docker daemon.</p>
  
  <p><a href="https://i.stack.imgur.com/KmPWs.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I need to start the sshd service and also need cms_docker connect to docker daemon. But now it seems there is conflict. Do you have any idea to solve this?</p>