docker: driver failed programming external connectivity on endpoint webserver

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

    This seems to be an incompatibility problem with windows "fast-boot" as described here: (just restart the docker service) and it may work.

    https://github.com/docker/for-win/issues/2722

    This is caused by an incompatibility with Docker and fastboot. You can either make sure you stop all containers before shutting Windows down or you can disable fastboot in Windows' power settings by doing the following:

    CTRL+R > "powercfg.cpl" > "Choose what the power buttons do" > "Change settings that are currently unavailable" > Deselect "Turn on fast start-up"

    You can also disable fastboot with a single command in powershell if you're comfortable doing so:

    Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power\' -Name HiberbootEnabled -Value 0

提交回复
热议问题