Installing Docker on Fedora 29
The instructions for installing Docker on the official website for
Fedora are somewhat confusing and resulted in a broken Docker installation for me.
Here is an attempt at both simplifying and clarifying the steps (for Fedora 29).
Install docker
Install Docker with dnf
:
Add yourself as a docker
user:
sudo groupadd docker
sudo usermod -ag docker $USER
Note
To confirm that this worked, use the following
command:
cat /etc/group | grep docker
Log out of the current session, then login again.
That's it!
Start docker
To start the docker
daemon, run:
sudo systemctl start docker
Confirm that everything is working:
Note
You shouldn't need to run sudo
for this since you previously added yourself to the
docker
group.
Start docker at boot
Run this line:
sudo systemctl enable docker
Disable docker at boot
Run this line:
sudo systemctl disable docker