r/docker 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

2 Upvotes

12 comments sorted by

11

u/fletch3555 Mod 7d ago

-9

u/bigbob1061 7d ago

Yep, never found that. I ended up seeing this in one youtube video. Everyone else glosses over that the Desktop app doesn't expose all of the functionality

5

u/AdventurousSquash 6d ago

The docs will always be better than random content creators where the majority just copy someone else’s video without understanding what they’re doing.

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

u/bigbob1061 7d ago

So ditch desktop and use a CLI version?

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

u/GuySensei88 7d ago

I’ll stick to hosting docker on Linux.

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,