docker常用命令
作者:互联网
创建一个容器:
docker erun -itd -p 80:80 -e "container=docker" --privileged=true -v E:/:/mnt/e -v C:/:/mnt/c -v E:/conf/sites-available:/etc/nginx/sites-enabled --name php72 xxx/php72
打包自己的镜像:
docker commit 4a5715a915e5 baoguok/php72
docker push xxx/php72
查看已启动容器
docker ps -l
查看本地容器所有镜像
docker image ls
启动docker容器
docker container start container ID
docker start c8a50db0b381
Error response from daemon: driver failed programming external connectivity on endpoint php72 (0be994bc2992362d2d097277161b4f3c04285f1b27c449184e451e5c125aa504): Error starting userland proxy: /forwards/expose/port returned unexpected status: 500
Error: failed to start containers: c8a50db0b381
端口占用解决方法:
netstat -ano|findstr "80"
taskkill -PID 15748 -F
标签:container,php72,常用命令,start,Error,docker,80 来源: https://www.cnblogs.com/ctodown/p/11741896.html