Docker Community Forums

Share and learn in the Docker community.

How many docker-containerd.sock are supposed to be running?

docker

(Nonni) #1

Hello! Docker newbie here.

Can someone please tell me how docker sockets are supposed to be running?

While playing/poking around, I found several unix sockets for docker running on a host (just trying to understand things). I though only one socket is supposed to be running ?

This is the output of netstat -a --protocol=unix

netstat -a --protocol=unix
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    28647    /run/user/0/systemd/notify
unix  2      [ ACC ]     STREAM     LISTENING     28648    /run/user/0/systemd/private
unix  2      [ ACC ]     SEQPACKET  LISTENING     8536     /run/udev/control
unix  3      [ ]         DGRAM                    8530     /run/systemd/notify
unix  2      [ ACC ]     STREAM     LISTENING     8531     /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     8537     /run/lvm/lvmpolld.socket
unix  2      [ ACC ]     STREAM     LISTENING     53999    /var/run/docker/containerd/docker-containerd.sock
unix  2      [ ACC ]     STREAM     LISTENING     8538     /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     54006    /var/run/docker/metrics.sock
unix  2      [ ACC ]     STREAM     LISTENING     8542     /run/systemd/journal/stdout
unix  8      [ ]         DGRAM                    8543     /run/systemd/journal/socket
unix  8      [ ]         DGRAM                    8837     /run/systemd/journal/dev-log
unix  2      [ ]         DGRAM                    8933     /run/systemd/journal/syslog
unix  2      [ ACC ]     STREAM     LISTENING     35027    /run/snapd.socket
unix  2      [ ACC ]     STREAM     LISTENING     13217    /run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     13225    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     13226    /run/uuidd/request
unix  2      [ ACC ]     STREAM     LISTENING     13307    @ISCSIADM_ABSTRACT_NAMESPACE
unix  2      [ ACC ]     STREAM     LISTENING     35028    /run/snapd-snap.socket
unix  2      [ ACC ]     STREAM     LISTENING     13205    /var/lib/lxd/unix.socket
unix  2      [ ACC ]     STREAM     LISTENING     53795    /var/run/docker.sock
unix  2      [ ACC ]     STREAM     LISTENING     53998    /var/run/docker/containerd/docker-containerd-debug.sock
unix  2      [ ACC ]     STREAM     LISTENING     54252    /run/docker/libnetwork/126ef966fc19cd28a51303d7fff639c993e7c3bc7d480b972ed3afdde16eed1a.sock
unix  2      [ ]         DGRAM                    53980    
unix  3      [ ]         DGRAM                    11488    
unix  3      [ ]         STREAM     CONNECTED     14436    
unix  3      [ ]         DGRAM                    11490    
unix  3      [ ]         STREAM     CONNECTED     49695    
unix  3      [ ]         STREAM     CONNECTED     53967    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14821    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     28604    
unix  3      [ ]         STREAM     CONNECTED     15532    /run/systemd/journal/stdout
unix  3      [ ]         DGRAM                    11489    
unix  2      [ ]         DGRAM                    14367    
unix  3      [ ]         STREAM     CONNECTED     14433    
unix  3      [ ]         STREAM     CONNECTED     49696    /run/lvm/lvmetad.socket
unix  3      [ ]         STREAM     CONNECTED     14441    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     53966    
unix  3      [ ]         STREAM     CONNECTED     15962    
unix  3      [ ]         DGRAM                    11487    
unix  2      [ ]         DGRAM                    28629    
unix  3      [ ]         STREAM     CONNECTED     14820    
unix  3      [ ]         STREAM     CONNECTED     54008    /var/run/docker/containerd/docker-containerd.sock
unix  3      [ ]         STREAM     CONNECTED     14005    
unix  2      [ ]         DGRAM                    28530    
unix  3      [ ]         STREAM     CONNECTED     28622    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     13745    
unix  3      [ ]         STREAM     CONNECTED     15511    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    28610    
unix  3      [ ]         STREAM     CONNECTED     13744    
unix  3      [ ]         STREAM     CONNECTED     13746    /var/run/dbus/system_bus_socket
unix  2      [ ]         DGRAM                    13741    
unix  3      [ ]         STREAM     CONNECTED     13638    
unix  3      [ ]         STREAM     CONNECTED     48163    
unix  3      [ ]         STREAM     CONNECTED     48165    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    8982     
unix  3      [ ]         STREAM     CONNECTED     56244    
unix  3      [ ]         STREAM     CONNECTED     56245    
unix  3      [ ]         STREAM     CONNECTED     13446    
unix  3      [ ]         STREAM     CONNECTED     54045    
unix  3      [ ]         STREAM     CONNECTED     15483    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14641    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     14640    
unix  3      [ ]         STREAM     CONNECTED     13702    
unix  3      [ ]         STREAM     CONNECTED     35098    
unix  3      [ ]         STREAM     CONNECTED     15503    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     54046    /var/run/docker/containerd/docker-containerd.sock
unix  2      [ ]         DGRAM                    13306    
unix  3      [ ]         STREAM     CONNECTED     35099    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    53741    
unix  2      [ ]         DGRAM                    13308    
unix  3      [ ]         STREAM     CONNECTED     54003    /var/run/docker/containerd/docker-containerd.sock
unix  2      [ ]         DGRAM                    11482    
unix  3      [ ]         STREAM     CONNECTED     54002    
unix  2      [ ]         DGRAM                    13933    
unix  3      [ ]         STREAM     CONNECTED     9852     
unix  3      [ ]         STREAM     CONNECTED     54007    
unix  3      [ ]         STREAM     CONNECTED     9853     /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     15531    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     11459    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14360    
unix  3      [ ]         STREAM     CONNECTED     11458    
unix  3      [ ]         DGRAM                    9869     
unix  3      [ ]         STREAM     CONNECTED     9319     
unix  3      [ ]         STREAM     CONNECTED     15963    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    9855     
unix  3      [ ]         STREAM     CONNECTED     9320     /run/systemd/journal/stdout
unix  3      [ ]         DGRAM                    9870