How to install Docker on Fedora 26

install docker on debian 8

Today I am going to show you how to install Docker on Fedora 26. Fedora 26 is still in development stage when this post is being written. Installing Docker on Fedora 26 is very easy because its available through Fedora repository. OK, so basically, we can install Docker with this simple command, as root.

dnf install docker

Example Output

[root@fedora ~]# dnf install docker
Last metadata expiration check: 1:00:40 ago on Mon May 22 20:18:03 2017 WIB.
Dependencies resolved.
======================================================================================================================
 Package                             Arch          Version                               Repository              Size
======================================================================================================================
Installing:
 docker                              x86_64        2:1.13.1-7.git14cc629.fc26            updates-testing         20 M
Installing dependencies:
 audit-libs-python3                  x86_64        2.7.6-1.fc26                          updates-testing         77 k
 checkpolicy                         x86_64        2.6-1.fc26                            fedora                 296 k
 container-selinux                   noarch        2:2.14-1.fc26                         updates-testing         32 k
 container-storage-setup             noarch        0.3.0-1.fc26                          updates-testing         34 k
 docker-common                       x86_64        2:1.13.1-7.git14cc629.fc26            updates-testing         76 k
 docker-rhel-push-plugin             x86_64        2:1.13.1-7.git14cc629.fc26            updates-testing        1.6 M
 gnupg                               x86_64        1.4.21-2.fc26                         fedora                 1.3 M
 libcgroup                           x86_64        0.41-11.fc26                          fedora                  66 k
 libnet                              x86_64        1.1.6-12.fc26                         fedora                  63 k
 libsemanage-python3                 x86_64        2.6-4.fc26                            updates-testing        112 k
 libusb                              x86_64        1:0.1.5-8.fc26                        fedora                  39 k
 policycoreutils-python-utils        x86_64        2.6-5.fc26                            updates-testing        218 k
 policycoreutils-python3             x86_64        2.6-5.fc26                            updates-testing        1.8 M
 protobuf-c                          x86_64        1.2.1-4.fc26                          fedora                  34 k
 python-rhsm-certificates            x86_64        1.19.4-1.fc26                         updates-testing         43 k
 setools-python3                     x86_64        4.1.0-2.fc26                          fedora                 569 k
 skopeo-containers                   x86_64        0.1.19-2.dev.git0224d8c.fc26          updates-testing        9.8 k
 systemd-container                   x86_64        233-3.fc26                            updates-testing        415 k
 yajl                                x86_64        2.1.0-6.fc26                          fedora                  36 k
Installing weak dependencies:
 criu                                x86_64        3.0-1.fc26                            updates-testing        424 k
 oci-register-machine                x86_64        0-3.7.gitbb20b00.fc26                 fedora                 982 k
 oci-systemd-hook                    x86_64        1:0.1.7-1.git1788cf2.fc26             updates-testing         32 k

Transaction Summary
======================================================================================================================
Install  23 Packages

Total download size: 28 M
Installed size: 93 M
Is this ok [y/N]:

Once installed, we can now run the daemon and make it run during startup

systemctl start docker
systemctl enable docker

Now make sure it running

systemctl status docker

Example Output

[root@fedora ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-05-22 21:40:51 WIB; 1s ago
     Docs: http://docs.docker.com
 Main PID: 11906 (dockerd-current)
    Tasks: 9 (limit: 8192)
   CGroup: /system.slice/docker.service
           └─11906 /usr/bin/dockerd-current --add-runtime oci=/usr/libexec/docker/docker-runc-current --default-runtim

May 22 21:40:50 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:50.070330964+07:00" level=info msg
May 22 21:40:50 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:50.169463664+07:00" level=info msg
May 22 21:40:50 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:50.749754715+07:00" level=info msg
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.359860442+07:00" level=info msg
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.407460636+07:00" level=warning 
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.407874840+07:00" level=warning 
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.408889652+07:00" level=info msg
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.408925529+07:00" level=info msg
May 22 21:40:51 fedora.test.lan dockerd-current[11906]: time="2017-05-22T21:40:51.478648962+07:00" level=info msg
May 22 21:40:51 fedora.test.lan systemd[1]: Started Docker Application Container Engine.

Make sure the status is Active as above

Be the first to comment

Leave a Reply