gpt4 book ai didi

docker - 来自守护程序的错误响应:驱动程序无法编程外部连接

转载 作者:行者123 更新时间:2023-12-02 19:03:03 24 4
gpt4 key购买 nike

我刚刚安装了docker v18.09.2

并且如其官方文档中所述。我尝试运行nginx

但是我得到这个错误:

PS C:\Users\rmali> docker run --detach --publish 8090:80 --name webserver nginx

d2e8a8df30520b2c379787a210d1203d56a3f78b9c38187ae04f20c8ad9f1745

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint webserver (c58767e17064fffd8d5313a0a2f4ffcd7138c1224524753225873d69d1848136): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8090:tcp:172.17.0.2:80: input/output error.

我想念什么?

最佳答案

另请参见this discussionthis,这似乎是因为上次关闭计算机时docker没有干净地停止。

解决方法是:

从 docker 托盘菜单中选择Restart ...以重新启动 docker 。

或者,另一个解决方案:请参见this:

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

关于docker - 来自守护程序的错误响应:驱动程序无法编程外部连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57033367/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com