Back

Docker Installation and initial configuration

Some details on the installation of docker. Here, I suppose I'm using the dnf package manager.

I started in the official website: Install Using the Repository


                sudo dnf -y install dnf-plugins-core
                sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
                sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
                

At this point, it is also useful to follow the playlist: Learn Linux TV.


                sudo systemctl enable docker
                sudo systemctl start docker
                systemctl status docker
                

Run the first test.


                sudo docker run hell-world
                

The problem now is that we need to run ~sudo~. We fix this with


                sudo usermod -aG docker thiago