Fedora 25: Install docker-engine

This article will describe installing docker-engine. Please see here for usage of Docker.

1 Install docker-engine

The following script will install docker-engine.

#!/bin/sh

URL=https://docs.docker.com
PASS=${URL}/engine/installation/linux/repo_files/fedora/docker.repo
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo ${PASS}
sudo mkdir -p /var/lib/docker # docker-engine-selinux issue
sudo dnf install -y docker-engine
sudo systemctl start docker
sudo systemctl enable docker
sudo gpasswd -a hiroom2 docker
sudo reboot

2 Execution result

Run hello-world.

$ docker run hello-world
<snip>
Hello from Docker!
<snip>