Docker Error response from daemon: driver failed programming external connectivity on endpoint webs

按照官网的配置,

https://docs.docker.com/docker-for-windows/

当执行到第 5 步时

Docker  Error response from daemon: driver failed programming external connectivity on endpoint webs

 

如果当前你的电脑 80 端口已经被别的程序占用,运行以上命令就会报错,报错如下:

Docker  Error response from daemon: driver failed programming external connectivity on endpoint webs

报错信息显示有冲突

 

解决方法:

可以通过改变端口号解决,例如修改为 8080

docker run -d -p 8080:80 --name webserver nginx

 

运行成功在浏览器打开 localhost:8080 :

Docker  Error response from daemon: driver failed programming external connectivity on endpoint webs

 

上一篇:java-Spring Boot 2自定义执行器端点


下一篇:二十二:视图之add_url_rule和app.route