A simple minimalist example to use docker for your research project.
- develop and test your code locally
- push your code to GitHub and it will trigger a GitHub action
- the action will build a docker image and push it to registry under GitHub Packages
- on a powerful remote machine, pull the image and run experiments
Also see presentation.pdf
for some visual pollution.
docker build .
builds an imagedocker images
lists all imagesdocker ps -a
lists all containersdocker run <image>
runs a containerdocker run -it <image>
runs a container in interactive modedocker run --gpus all -it <image>
runs a container in interactive mode with GPU support (need to installnvidia-docker
)docker login <registry> -u <username> -p <password>
logs in a docker registrydocker push <registry>:<tag>
pushes an image to a registrydocker pull <registry> --all-tags
pulls all images from a registrydocker system prune
clears stuffdocker exec <container> <command>
runs a command in a containerdocker cp <container>:<source> <dest>
copies content from a container out