Failed to start userland proxy for port mapping

I try to start

docker run -it --name=grafana -p 3000:3000 grafana/grafana-enterprise

and get the error message:

docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint grafana (container-UID): failed to start userland proxy for port mapping 0.0.0.0:3000:dockerip:3000/tcp: failed to start docker-proxy, check that the current version is in your $PATH.

I confirmed that docker-proxy IS in my PATH: …/usr/bin/docker-proxy:/usr/local/bin/docker-proxy

which docker-proxy returns /usr/local/bin/docker-proxy

docker info:

Client: Docker Engine - Community
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.23.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.35.1
Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 28.1.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.10.0-31-amd64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.35GiB
Name: hoastname
ID: 230811ec-235e-4780-9647-67c259080895
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http://proxy.x.y:port
HTTPS Proxy: http://proxy.x.y:port
No Proxy: 127.0.0.0/8
Experimental: false
Insecure Registries:
::1/128
127.0.0.0/8
Live Restore Enabled: false`

This happened after I tinkered with the system (apt-get upgrade, installed local python 3.12.10) I try to start

docker run -it --name=grafana -p 3000:3000 grafana/grafana-enterprise

and get the error message:

docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint grafana (container-UID): failed to start userland proxy for port mapping 0.0.0.0:3000:dockerip:3000/tcp: failed to start docker-proxy, check that the current version is in your $PATH.

I confirmed that docker-proxy IS in my PATH: …/usr/bin/docker-proxy:/usr/local/bin/docker-proxy

which docker-proxy returns /usr/local/bin/docker-proxy

docker info:

`Client: Docker Engine - Community
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.23.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.35.1
Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 28.1.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.10.0-31-amd64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.35GiB
Name: hoastname
ID: 230811ec-235e-4780-9647-67c259080895
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http://proxy.x.y:port
HTTPS Proxy: http://proxy.x.y:port
No Proxy: 127.0.0.0/8
Experimental: false
Insecure Registries:
::1/128
127.0.0.0/8
Live Restore Enabled: false

System info: Debian 11.11

This happened after I tinkered with the system (apt-get upgrade, installed local python 3.12.10)

You have mismatching Docker client and Docker server versions, that seems strange.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.