Remove all containers
docker rm -f $(docker ps -aq)
Remove image
docker rmi <image_name>
Install docker desktop
sudo pacman -S docker docker-compose
sudo systemctl start docker
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker $USER
Just make sure docker desktop uses wsl2 and cuda is up to date
yay -S nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
CMD ["Custom command"]
docker build -t <PROJECT_NAME> -f Dockerfile.wandb .
Create volume called data
docker run -v data:/usr/src/app <PROJECT_NAME>
docker run -it --rm -v data:/data alpine sh
mv data/raw .
docker run --gpus <all | '"device=0,1"'> -v <project-path>/data:/app/data <PROJECT_NAME>
docker run -it --rm --gpus all -v ~/competitions/<PROJECT_NAME>/data:/app/data <PROJECT_NAME>:latest
docker run --ipc=host -it --gpus all -v data:/usr/src/app/data <PROJECT_NAME>