Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.78 KB

docker.md

File metadata and controls

74 lines (50 loc) · 1.78 KB

Docker

Description

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.

Directory

References


Setup

Description

This details how to install and set up Docker for use by ${USER} without needing sudo (not rootless).

References

Steps

  1. Install the Docker (docker) package using yay.

  2. Add our user to the docker group:

    newgrp docker
    sudo usermod -aG docker ${USER}
  3. Start and Enable the docker.service service.

Troubleshooting

IP Range Conflict

  1. Should an IP range conflict occur, check IP range used by the docker daemon:

    ip route | grep docker
  2. Fix by creating an /etc/docker/daemon.json file and change the base IP to a non-conflicting IP (i.e. 172.18.0.0/16):

    {
        "debug" : true,
        "default-address-pools" : [
            {
                "base" : "172.18.0.0/16",
                "size" : 24
            }
        ]
    }
  3. Restart the docker.service service accordingly.