There is what's need to be done in order to launch the docker container I need for my these.
- Fedora 29
- That's all
From the docker docs.
- Uninstall older versions
sudo dnf -y remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
- Set up the docker repository
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
- Install Docker CE
sudo dnf -y install docker-ce docker-ce-cli containerd.io
Using systemctl
utility:
sudo systemctl start docker
You can verify that everythings works with
sudo docker run hello-world
Using systemd
:
sudo systemctl enable docker
Disable it with sudo systemctl disable docker
If you are tiered of using sudo for docker, try:
sudo groupadd docker
sudo usermod -aG docker $USER
Then log out and in, then test it with
docker run hello-world
If there is permission error with the dorectory ~/.docker
, either remove it or change it permission with
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
for more information, see this useful article .