Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing docker-ce on Fedora 28

According to docker website, installation for Fedora should be as follow: https://docs.docker.com/install/linux/docker-ce/fedora/#set-up-the-repository

However these instruction does not work for Fedora, and you get a frustrating message "Nothing to be done"

So how can I install Docker-ce on Fedora 28

like image 231
Sagi Forbes Avatar asked May 09 '18 22:05

Sagi Forbes


People also ask

Is Docker CE still available?

Docker CE is a free and open source containerization platform. It is a rebranded version of the Docker open source solution that has been freely available since the launch of Docker in 2013. CE can run on Windows 10 and Mac, on Azure and AWS, as well as CentOS, Debian, Fedora, and Ubuntu.

Should I install Docker IO or Docker CE?

For me, if you are setting up a dedicated machine for running containers, go with docker-ce . While if you only run an occasional container, don't follow what Docker Inc. is doing upstream, and use the machine for a lot of other tasks, using docker.io can simplify your workflows.


3 Answers

From fedora 28 only the edge, test and nightly version are available.

To install docker-ce edge you can enable the edge repo:

dnf config-manager --set-disabled docker-ce-stable
dnf config-manager --set-enabled docker-ce-edge
dnf install docker-ce
like image 196
nicofonk Avatar answered Nov 13 '22 20:11

nicofonk


At the writing of this answer, the repo of Docker did not contain a stable version for Fedora 28 The work around is to call:

sudo dnf install https://download.docker.com/linux/fedora/27/x86_64/stable/Packages/docker-ce-18.03.1.ce-1.fc27.x86_64.rpm

This will download the latest stable version at the writing of these lines. Hope Docker will set a repo for Fedora 28 soon

like image 35
Sagi Forbes Avatar answered Nov 13 '22 21:11

Sagi Forbes


I followed below steps on Fedora 28

Install DNF Plugins package

$ sudo dnf -y install dnf-plugins-core
--
Last metadata expiration check: 0:59:06 ago on Thu 05 Jul 2018 21:38:55 CDT.
Package dnf-plugins-core-2.1.5-4.fc28.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

Setup stable repository

$ sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
--
Adding repo from: https://download.docker.com/linux/fedora/docker-ce.repo

Enable the edge and test repositories

$ sudo dnf config-manager --set-enabled docker-ce-edge
$ sudo dnf config-manager --set-enabled docker-ce-test

Install Docker CE

$ sudo dnf install docker-ce
....
Userid     : "Docker Release (CE rpm) <[email protected]>"
Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35 
From       : https://download.docker.com/linux/fedora/gpg

Start docker

$  sudo systemctl start docker

Verify installation

$ sudo docker run hello-world

If all goes well you should get

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9bb5a5d4561a: Pull complete 
Digest: sha256:3e1764d0f546ceac4565547df2ac4907fe46f007ea229fd7ef2718514bcec35d
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.
like image 29
Jose Luis Soto Posada Avatar answered Nov 13 '22 19:11

Jose Luis Soto Posada