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 |1 Answer
Reset to default 0Cifs/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.
docker run -p
options? Thedocker 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