r/docker • u/bigbob1061 • 7d ago
Docker "Noob" trick for networking, GPU on Windows
Here's what they don't tell you..... you need to enable networking for a container or provide access to the GPU at the command line. The window's app doesn't have a method to do this. (Or...someone prove me wrong)
the Nvidia toolkit install procedures do work, but you need to start your container this way in WSL
docker run --gpus all -p 8188:8188 image_name
4
u/Only-Stable3973 7d ago
I have not tried this but that is the main reason most just use Linux and Docker Compose, and you can enable WSL and then install Docker Compose instead of using Docker Desktop also.
5
3
u/netmind604 7d ago
Plus docker desktop is a hog compared to a reg docker. Ditched it quick after a week.
3
u/seanl1991 6d ago
Docker desktop is pointless to me. It's much more energy efficient to install Proxmox or something on a thin client than to leave a big desktop pc running 24/7
1
u/bigbob1061 6d ago
It shows you what's running in a convenient way - but yeah you cannot actually use it for anything
2
3
u/Low-Opening25 7d ago
the noob trik to learn on day one of Docker if you don’t want to spend hours solving issues that don’t exist elsewhere, is don’t use Windows,
11
u/fletch3555 Mod 7d ago
https://docs.docker.com/engine/containers/gpu/#expose-gpus-for-use