无法在网络nat上创建终结点:hnsCall在Win32中失败:进程无法访问文件 [英] Failed to create endpoint on network nat: hnsCall failed in Win32: The process cannot access the file
问题描述
我正在尝试运行以下docker命令(最新Win10 Fall 2018更新,最新docker版本2.0):
I'm trying to run the following docker command (latest Win10 Fall 2018 update, latest docker version 2.0):
docker run -d -p 1433:1433 -e sa_password=Test_123 -e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer
但是它失败并出现以下错误:
But it fails wit the following error:
守护程序的错误响应:无法创建端点
网络nat上的unruffled_wozniak:hnsCall在Win32中失败:进程
无法访问该文件,因为该文件正在被另一个进程使用。
(0x20)。
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
- restart daemon
docker system prune -a
- restart machine
- restart HNS service
- reinstall docker
- disable from Windows features the container and Hyper-V
没有任何效果。
推荐答案
在尝试使PostgreSQL与Docker一起运行时,我遇到了同样的问题。问题在于该端口已经被捆绑!这是因为我已经在我的OS中将PostgreSQL作为普通数据库运行。
I had the same issue while trying to get PostgreSQL running with Docker. The problem was that the port was already tied up! This was because I had already had PostgreSQL running as a normal database in my OS.
我的解决方法是找到 postgresql-x64-10
在任务管理器中的服务(在服务下)并停止该服务。
My fix was finding the postgresql-x64-10
service in the Task Manager (under Services) and stopping the service.
解决方案听起来很明显,但我想我提到了无论如何
这篇关于无法在网络nat上创建终结点:hnsCall在Win32中失败:进程无法访问文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!