Docker-proxy using port when containers are not running

On an ubunty 1404 machine, the docker proxy uses port 6379, however there are no docker containers.

$ sudo netstat -tulpn | grep docker    
tcp6       0      0 :::6379                 :::*                    LISTEN      28438/docker-proxy
tcp6       0      0 :::2376                 :::*                    LISTEN      28266/dockerd
$ docker ps -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS       PORTS               NAMES
$

After stopping the docker service, this process disappeared and this port is available, however, when I start the docker backup, the docker proxy server still uses this port, even if the docker containers do not work.

$ docker info
## Output:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.2.0-38-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.32 GiB
Name: xxxxx
ID: LILE:5WFT:2EPL:OXCN:GZG7:C4WE:AFCX:LNAT:TBMG:XQFP:QX7W:XLYK
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8
+9
source share
2 answers

Try:

sudo service docker stop sudo rm -f/var/lib/docker/network/files/local-kv.db

From this ticket .

+10
source

I uninstalled Docker using apt, but it turned out that I had a different version of Docker with a binding installed.

sudo snap remove docker
0
source

Source: https://habr.com/ru/post/1652376/


All Articles