The Docker daemon can listen for requests via three different types of socket:
unix
tcp
fd
By default, Docker runs through a non-networked UNIX socket, which is created at /var/run/docker.sock and requires either root permission or docker group membership.
Additionally, pay attention to the runtime sockets of other high-level runtimes:
A tcp socket is used to remotely access the Docker daemon, for which the default setup provides un-encrypted and un-authenticated direct access. It is conventional to use port 2375 for un-encrypted, and port 2376 for encrypted communication with the daemon.
On Systemd-based systems, communication with the Docker daemon can occur over the Systemd socket fd://.
Sometimes the Docker daemon can be accessed inside the container or over the network. It is often leads to commands execution on the host system and escape from the container.
List of all containers
curl command to list all containers on the host over unix socket.