- Notifications
You must be signed in to change notification settings - Fork0
Tensorflow GPU with Docker in WSL2 using VS Code Dev Containers
License
NotificationsYou must be signed in to change notification settings
robisim74/tensorflow-docker-dev-wsl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tensorflow GPU with Docker in WSL2 using VS Code Dev Containers
- Windows 11
- Windows Subsystem for Linux (WSL2)
- LatestNVIDIA Windows GPU Driver
- Docker Desktop WSL2
- Visual Studio Code withDev Containers extension
- Create a new repository from the template or clone the code in WSL
- In
Dockerfile
:- Update theTensorFlow Docker image: run
nvidia-smi
command in your Terminal, and get the CUDA version. Then find the Tensorflow version compatible with the CUDA versionhere - Update
USERNAME
ARG to create a non-root user - Update
USER_UID
andUSER_GID
ARGs (useid
command in your Terminal to get them) - Update required packages (optional)
- Update theTensorFlow Docker image: run
- Update pip packages in
requirements.txt
(optional) - Open your project in WSL with VS Code and reopen in Container: (F1) use theDev Containers: Reopen in Container command
Runpyhton main.py
to test it.
About
Tensorflow GPU with Docker in WSL2 using VS Code Dev Containers
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.