admin管理员组

文章数量:1318156

I create a new container using dockur/windows image. This is the GitHub page: .

To create it I use command exposed in the guide at the link (only remove --rm and add --): docker run -it --name ShareClient -p 8006:8006 -p 3389:3389 -p 3389:3389/udp --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows

Container start correctly and Windows machine is correctly accessible at link http://localhost:8006/. I configured a folder to be a shared folder with user permission and every necessary configurations.

Now I try to access to this shared folder but seems inacessible from my host (my pc). Myabe I use the wrong IP? To get it I use docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ShareClient. The response is 172.17.0.2.

In GitHub page seems that is possible to connect also using RDP but I'm unable to do this.

Container run with a network of type bridge. Could this be the problem? I tried to recreate container with network as host, but in this way I'm unable to connect using web.

How can I find Windows shared folder from my host (also in Windows 11)?

I create a new container using dockur/windows image. This is the GitHub page: https://github/dockur/windows.

To create it I use command exposed in the guide at the link (only remove --rm and add --): docker run -it --name ShareClient -p 8006:8006 -p 3389:3389 -p 3389:3389/udp --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows

Container start correctly and Windows machine is correctly accessible at link http://localhost:8006/. I configured a folder to be a shared folder with user permission and every necessary configurations.

Now I try to access to this shared folder but seems inacessible from my host (my pc). Myabe I use the wrong IP? To get it I use docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ShareClient. The response is 172.17.0.2.

In GitHub page seems that is possible to connect also using RDP but I'm unable to do this.

Container run with a network of type bridge. Could this be the problem? I tried to recreate container with network as host, but in this way I'm unable to connect using web.

How can I find Windows shared folder from my host (also in Windows 11)?

Share Improve this question edited Jan 22 at 16:30 erikscandola asked Jan 22 at 14:37 erikscandolaerikscandola 2,9462 gold badges22 silver badges28 bronze badges 2
  • The link you point to also publishes port 3389 (both TCP and UDP); do you need equivalent docker run -p options? The docker inspect IP address is pretty much useless except in one specific host/Docker configuration and you never need to look it up; bridge networking is the standard Docker networking mode and you shouldn't ever need to change it. – David Maze Commented Jan 22 at 14:45
  • I updated my question. My last try was with also port 3389. I updated command in my question. – erikscandola Commented Jan 22 at 14:48
Add a comment  | 

1 Answer 1

Reset to default 0

Cifs/Samba need 3389 tcp and udp, with the command you specified docker will only setup a port-forward for 3389/tcp. You can do this by adding -p 3389:3389/udp to your command.

本文标签: dockerAccess to shared folder from host to containerStack Overflow