CSx
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

đŸ’ģ Docker


See also Jellyfin

Installation

  • docker

  • sudo systemctl {start,enable} docker.service

List Containers

  • docker images

  • sudo docker ps

Logs

  • sudo docker logs containerid

Storage Driver

  • sudov /etc/docker/daemon.json

    ++ {
    ++   "storage-driver": "overlay2"
    ++ }
    

Volume examples

  • docker run -d \

  • --volume /dir/media:/media

Permissions

  • sudo usermod -aG docker user

Cannot connect to docker daemon error

  • sudo snap start docker

  • sudo systemctl status docker

  • sudo systemctl enable docker

  • sudo systemctl start docker

Purge all the things

  • sudo docker system prune

Docker Compose

  • Visit: https://docs.docker.com/compose/install/

    Linux > Install Compose on Linux Systems

  • sudoc /usr/local/bin/docker-compose

  • mkdir ~/.sources/project-name

  • cd ~/.sources/project-name

  • mv docker-compose.yml ~/.sources/project-name/docker-compose.yml

  • docker-compose up

Remove Container

  • docker stop [container_id]

    or [container_name]

  • docker rm [container_id]

    or [container_name]

Resources