Containers

News and information about containers

Design Patterns

Docker Swarm

Podman

Docker

Getting started

  • Install Docker Engine on Ubuntu
  • Docker permission denied fix: sudo usermod -aG docker ${USER} or sudo chmod 666 /var/run/docker.sock
  • docker run hello-world
  • Install nvidia-dcoker2
  • docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
  • Set the default runtime /etc/docker/daemon.json:
{
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    },
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

Images

Learning

Prune

  • Remove all the images without a tag: docker rmi $(docker images -f dangling=true -q)
  • Remove images: docker rmi $(docker images |grep "<none>"|awk '$1=="<none>" {print $3}')
  • Prune the system: docker system prune
  • Check the /var/lib/docker folder: sudo du -h --max-depth=1 /var/lib/docker
  • Check storage with sudo baobab
  • How to clean up Docker
  • Remove all the containers: docker rm $(docker ps -a -q)

Applied Docker images

Heroku Buildpacks

Distroless containers

Docker on WSL2

Docker tools

Container Management

Portainer

Local Development Environment

Tools

Containerd

Registries

Singularity

Virtualization

Last modified 06.03.2022: Update Apps.md (98505d2)