For the first time, I used docker to find a mirror docker.io/skiychan/nginx-php7 and planned to deploy the container.
So the execution began:
sudo docker run --name nginx -p 8080:80 -d skiychan/nginx-php7
The tips are 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 (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f4047147d 7c): exec: "docker-proxy": executable file not found in $PATH
Error response from daemon: driver failed programming external connectivity on endpoint nginx (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f40 47147d7c): exec: "docker-proxy": executable file not found in $PATH
Error: failed to start containers: nginx
The prompt is that the docker-prxoy executable file 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 (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360cb55ff 19): Bind for 0.0.0.0:8080 failed: port is already allocated
Error response from daemon: driver failed programming external connectivity on endpoint nginx (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360 cb55ff19): Bind for 0.0.0.0:8080 failed: port is already allocated
Error: failed to start containers: nginx
It seems that the port has been allocated, but the container still fails to start.
Find out how to use docker, which is yum’s version number installed on centos: 1.13.1.
The same problem
whereis docker-proxy
docker-proxy: /usr/bin/docker-proxy
Soft connection or configuration to path, try.