docker: driver failed programming external connectivity on endpoint webserver

后端 未结 12 1975
陌清茗
陌清茗 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:46

    Try restarting the docker service. It works 99% of the time.

    service docker restart
    

    If that didn't work as expected, try restarting your pc and then restarting the docker service using above command.

    If none of the above worked try changing the exposed port to another unused port that should work.

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

提交回复
热议问题