Docker Socket Without TLS

I have a TLS secured docker demon running. I use TLS for remote accessing the docker demon and access docker locally without any TLS. Normally…

Recently, I have updated Docker. Apparently I cannot connect to the local socket anymore. I suppose Docker is using now TLS for remote and local connections.

  • Update existed docker image and all contains once Dockerfile changed
  • What is the relationship between the docker host OS and the container base image OS?
  • libcontainer, runc and nsenter bootstrap
  • how to securely connect to a mysql server running on a virtual machine
  • Run process as Daemon on AWS Infrastructure
  • MongoDB Docker Windows dev env. linux production env. possible solution?
  • Is there a way to disable TLS for the local Docker socket?

    Output of ps auxw | grep dockerd:

    /usr/bin/dockerd -H 0.0.0.0:2376 –tlsverify –tlscacert /home/dockermanager/.docker/ca.pem –tlscert /home/dockermanager/.docker/server-cert.pem –tlskey /home/dockermanager/.docker/server-key.pem

  • docker fails to access a gunicorn served resource in the host
  • How can I set the time zone in Dockerfile using gliderlabs/alpine:3.3
  • Docker Java Client in JMeter
  • how to rsync from a docker container to my host computer
  • Create Docker for Wso2 DAS
  • How to run a cron job inside a docker container
  • One Solution collect form web for “Docker Socket Without TLS”

    Had been able to fix this myself.

    I needed to migrate to these two systemd files provided by Docker:
    https://github.com/moby/moby/tree/master/contrib/init/systemd

    One service file is for the docker demon and there is one for the docker socket separately. The docker socket is a required dependency by docker.service and will be loaded, restartet and stopped accordingly.

    Then i needed to add the docker demon parameter -H unix:// in order to activate the docker demon listening to the docker socket.

    Afterwards everything worked as always and I assume local docker.socket communication does not need tls verification at all.

    Start command now:

    /usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2376 --tlsverify --tlscacert /home/dockeruser/.docker/ca.pem --tlscert /home/dockeruser/.docker/server-cert.pem --tlskey /home/dockeruser/.docker/server-key.pem
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.