Exec: "docker-proxy": executable file not found in $PATH

use docker for the first time to find a mirror docker.io/skiychan/nginx-php7 to deploy the container.

then start execution:

sudo docker run --name nginx -p 8080:80 -d skiychan/nginx-php7

the prompt is as follows

ARN[0025] Failed to allocate and map port 8080-8080: exec: "docker-proxy": executable file not found in $PATH
ERRO[0026] Handler for POST /v1.26/containers/nginx/start returned error: driver failed programming external connectivity on endpoint nginx (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f4047147d7c): exec: "docker-proxy": executable file not found in $PATH
Error response from daemon: driver failed programming external connectivity on endpoint nginx (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f4047147d7c): exec: "docker-proxy": executable file not found in $PATH
Error: failed to start containers: nginx

look at the hint that the executable docker-prxoy is missing, and the port allocation failed and the container failed to start.
but every time I execute docker start nginx, I output:

WARN[0031] Failed to allocate and map port 8080-8080: Bind for 0.0.0.0:8080 failed: port is already allocated
ERRO[0031] Handler for POST /v1.26/containers/nginx/start returned error: driver failed programming external connectivity on endpoint nginx (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360cb55ff19): Bind for 0.0.0.0:8080 failed: port is already allocated
Error response from daemon: driver failed programming external connectivity on endpoint nginx (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360cb55ff19): Bind for 0.0.0.0:8080 failed: port is already allocated
Error: failed to start containers: nginx

it looks like the port has been assigned, but the container still fails to start.

figure out how to use docker,docker is yum installed on centos version number: 1.13.1.

Mar.14,2021

/usr/libexec/docker

I see if there are these executable files in this directory, do you need to establish a soft connection under / usr/bin?


same question
whereis docker-proxy
docker-proxy: / usr/bin/docker-proxy
soft connection or configuration in path, try it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4d7b9-44f2c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4d7b9-44f2c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?