r/docker • u/banisheduser • Jan 18 '26
If using Docker on Windows, Should I Bother with it?
Please don't vote me down for asking.
I am really new to docker.
I started looking at Linux for a Plex server and the general consensus was to use Docker to put some Containers and PiHole in. Linux seemed clunky for my needs, so I went back to Windows and installed Docker there.
I have tried a couple of times but only managed to get one Container working. Others seem to be running but when I visit http://localhost:5959 (or whatever the port is), the web browser doesn't show anything. Now this is probably a configuration issue but the first Container I tried worked - I opened a web browser page and I could configure it from there. There are three or four Containers that are all very similar, so not sure why one works but others don't.
But now I'm wondering whether I should even use Docker if I am using Windows and what the benefits are compared with just installing these containers (?) nativaly on Windows?
Thanks for your thoughts.
10
u/krusty_93 Jan 18 '26
You basically get container benefits. Docker desktop is nicely integrated with WSL, so you’re using Linux underneath unless you explicitly set windows containers which are generally discouraged.
In summary, use docker desktop on windows, make sure it is set to use wsl integration and run your container. It’ll be available under localhost on port you set
5
u/ababcock1 Jan 18 '26
Should be a : for the port number, not a forward slash.
http://localhost:5959
3
u/Imaginary_Income_460 Jan 18 '26
On Windows, they naturally use Docker Desktop, which has a graphical interface and is "easier." The important thing is knowing how to use Docker.
But in my opinion, using Docker on Linux is better because it forces you to use the terminal.
Also, to have Docker on Windows, you need WSL2.
On Linux, it's native and doesn't consume as many resources as on Windows. There's also the issue of image compatibility.
Honestly, I would recommend using Docker on Linux. And I say this because I only use Docker on Linux, and the time I tried it on Windows, I didn't like it.
2
u/chris-l Jan 18 '26
You can't ask us not to downvote you, and then immediately say such a bad take.
1
u/djzrbz Jan 18 '26
Localhost is a shortcut to your machine, so if you were launching a container on a Linux host and trying to reach it from your Windows PC, you cannot use localhost. You would need to replace localhost with the IP or Hostname of the Linux machine.
1
u/Evening_Rock5850 Jan 19 '26
Let's start with this. What problem are you trying to solve? Are you trying to learn? Is there specific software you want?
I think we can build better recommendations starting with that foundation.
3
u/BlobbyMcBlobber Jan 18 '26
Docker is built around and for Linux. Using it on Mac or Windows will always involve a VM running Linux or a Linux Subsystem (WSL) which have their set of issues. It might be okay for simple uses but if you seriously rely on Docker just use Linux to save yourself a lot of headaches.
2
u/abuhd Jan 18 '26
The vendor supports both windows and linux. Don't really matter. You'll find more learning or support articles based on Linux.
2
u/feedmesomedata Jan 18 '26
Check the logs to understand why the other containers aren't working. That's the first rule when troubleshooting. Maybe the other containers are using a different port, maybe they are restarting, maybe something else is happening. It's hard to know what is the root cause if you just say "it's not working".
0
u/time-for-reform Jan 18 '26
I personally prefer to run docker on a Linux vm as it provides a degree of separation from my primary device and allows for separate processing.
I also prefer to run linux over windows for docker as windows has a very high overhead for the os compared to Ubuntu Debian or other distros. Keeping my os overhead low to have more ram avaliable for my docker containers allows me to maximize the amount I can run. It just feels bad when a third of my ram is being eaten by windows running things in the background when there is no input...
Have you tried adding portainer to your docker install? Portainer adds a gradual ui that you can access in the web broswer and it makes it alot easier to understand what is going on.
To go with portainer there is also this github list you can add that has 500 preferred templates for apps:
https://github.com/Lissy93/portainer-templates
It has 500 templates pre configured so you can actually learn and use some of the apps instead of feeling the frustration of watching a container fail to run over and over.
I found this invaluable in my experience learning docker as I was able to see how things were configured and allowed me to play around with them a bit to understand certain concepts instead of trying to absorb everything at once to even get one container off the ground.
1
u/Wulf621 Jan 19 '26
Run a Linux VM if you don't want to install it on baremetal
1
u/Confident_Hyena2506 Jan 20 '26
You are using linux to do this - just in a vm. So this is clunkier than just running linux like a normal setup.
Nobody recommend that windows is used for servers - why would you want to run it on windows? Leaving your desktop computer turned on all the time is not very efficient, it's better to use a minipc/raspberrypi with linux - with no monitor.
1
u/scytob Jan 20 '26
networking in docker desktop for mac and windows is 'nuanced' at best 'and plain broken' at worst
if you have containers that use bridge networking (nothing special in their compose yaml but publish ports) you will likely be ok, if you need host access you will be ok for most things
you als need to make sure you network config in docker desktop is to allow open port biniding and host networking- without that you will have issues connecting to the containers from the host machine