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.