在ubunty 1404机器上,docker-proxy正在使用端口6379,但是没有运行docker容器。
$ 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
$
停止docker服务后,此过程消失了,并且该端口可用,但是当我启动docker备份时,即使没有docker容器正在运行,docker-proxy仍在使用该端口。
$ 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
答案 0 :(得分:9)
答案 1 :(得分:2)
这在Linux上对我有用,而无需删除任何资源。
# Stop docker
sudo service docker stop
# Find your particular zombie proxy processes
sudo netstat -pna | grep docker-proxy
# tcp6 0 0 :::8025 :::* LISTEN <PID_A>/docker-proxy
# tcp6 0 0 :::13306 :::* LISTEN <PID_B>/docker-proxy
# ...
# Kill them
sudo kill -9 PID_A PID_B ...
# restart
sudo service docker start
答案 2 :(得分:0)
我使用apt卸载了Docker,但事实证明我安装了另一个带有snap的Docker版本。
sudo snap remove docker