我正在尝试运行以下 docker 命令(最新的 Win10 Fall 2018 更新,最新的 docker 版本 2.0):
docker run -d -p 1433:1433 -e sa_password=Test_123 -e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer
但它失败并出现以下错误:
Error response from daemon: failed to create endpoint unruffled_wozniak on network nat: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20).
我尝试了以下方法:
- 重启守护进程
docker system prune -a
- 重启机器
- 重启 HNS 服务
- 重新安装 docker
- 从 Windows 功能中禁用容器和 Hyper-V
没有任何效果。有什么建议吗?
最佳答案
不确定这样做是否明智,但我检查了该端口未与其他应用程序一起使用,但仍然出现错误。
这已经为我解决了几次问题。在管理 PowerShell 控制台中,运行以下命令:
Stop-Service docker
Stop-service hns
Start-service hns
Start-Service docker
docker network prune
部分来自 this post .
关于docker - 在网络 nat : hnsCall failed in Win32: The process cannot access the file 上创建端点失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53836103/