docker: driver failed programming external connectivity on endpoint webserver

后端 未结 12 1972
陌清茗
陌清茗 2020-12-23 19:16

I am trying to run a docker example following this documentation

This is my command:

docker run -d -p 80:80 --name webserver nginx
<
12条回答
  •  清酒与你
    2020-12-23 19:24

    In my case, port 80 is the default port for the web server and therefore it is protected. I changed the bind to port 60:8080 to ensure no deeper issues. Changing the bind to a different port allows me to execute the docker run and hit it in the browser at http://ip:60

提交回复
热议问题