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.

  • Is second value required when mapping ports in docker-compose file?
  • Django rest project dockerfile
  • I found an image on docker hub that I like but doesn't meet my needs. How do I update it and make it my own?
  • Docker compose. Networks. Spring Boot and MySQL connection
  • Docker swarm with Glassfish image fails to start nodes
  • Understanding Docker image
  • Is there a way to disable TLS for the local Docker socket?

    Output of ps auxw | grep dockerd:

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

  • add pip requirements to docker image in runtime
  • Can't run tomcat in docker, how can I run the container by it's id?
  • How to make communication between two docker containers running on two different hosts?
  • Docker services stops communicating after some time
  • Terminate docker compose when test container finishes
  • Does docker --rm=true affect caching adversly?
  • 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:

    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:// --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.