AI docker containers
- Python 62%
- Shell 26.4%
- Dockerfile 11.6%
| framepack_5090 | ||
| llasa | ||
| test | ||
| README.md | ||
WSL2 - installing docker enginer in WSL2
See: https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-desktop
# Install Docker, you can ignore the warning from Docker about using WSL
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Add your user to the Docker group
sudo usermod -aG docker $USER
# Sanity check that both tools were installed successfully
docker --version
docker compose version
In ~/.profile:
if grep -q "\-WSL2" /proc/version > /dev/null 2>&1; then
if service docker status 2>&1 | grep -q "is not running"; then
wsl.exe --distribution "${WSL_DISTRO_NAME}" --user root \
--exec /usr/sbin/service docker start > /dev/null 2>&1
fi
fi
WSL2 - installing full Nvidia CUDA support for docker containers
Install CUDA drivers 12.8.1 in Windows.
WSL2 Guides:
- https://docs.nvidia.com/cuda/wsl-user-guide/index.html
- https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
Also had to:
sudo apt list cuda-toolkit --all-versions
sudo apt-get install cuda-toolkit=12.8.1-1
Checks:
/usr/local/cuda/bin/nvcc --version
nvidia-smi
Install CuDNN in Ubuntu/WSL:
wget https://developer.download.nvidia.com/compute/cudnn/9.8.0/local_installers/cudnn-local-repo-ubuntu2404-9.8.0_1.0-1_amd64.deb
sudo dpkg -i cudnn-local-repo-ubuntu2404-9.8.0_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-ubuntu2404-9.8.0/cudnn-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cudnn-cuda-12
This should work:
docker run -it --gpus all nvidia/cuda:12.8.1-devel-ubuntu24.04 nvidia-smi