Docker Community Forums

Share and learn in the Docker community.

How developer/user connect with docker server


(Nirajvara) #1

Hi

I have centos7 and installed the docker. I am new in docker.

how many ways developer/user connect with docker server ???


(David Maze) #2

The usual way is to use the docker command-line tool, which communicates with the Docker daemon via a Unix socket in /var/run/docker.sock.

There are some library integrations around this (I’ve used the standard Python library a couple of times) but with the exception of some specific tools like Docker Compose and IDE integrations these are much less common.

It’s possible to configure Docker to listen on a network socket but you really really shouldn’t turn this on. As the documentation doesn’t make quite clear enough, anyone who can reach the Docker socket has complete, unrestricted, unauthenticated, root-level control over the entire host system and every container running on it.