Failed to create endpoint on network nat: failed during hnsCallRawResponse: hnsCall failed in Win32

While trying to run docker container in Windows, a very common error you can see the following:

1Failed to create endpoint on network nat: failed during hnsCallRawResponse: hnsCall failed in Win32: The process can not access the file
2because it is being used by another process. (0.20)

The most common cause of this error is, you are trying to map the host port to container port, but the host port is already occupied by another application.

If this is the IIS server, you can simply stop the IIS server by command: iisreset /stop

Otherwise, you can user netstat to find the application which is listening to the port and kill that application from task manager.

comments powered by Disqus