This article will describe installing Docker. Package name is changed from docker-engine to docker-ce. Please see here for usage of Docker.
Table of Contents
1 Install Docker
The following script will install Docker.
#!/bin/sh set -e # Install Docker. URL=https://download.docker.com/linux/fedora/docker-ce.repo sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo ${URL} sudo dnf config-manager --set-enabled docker-ce-edge sudo dnf install -y docker-ce sudo systemctl start docker sudo systemctl enable docker # Add docker group for running docker without sudo. sudo gpasswd -a "${USER}" docker sudo reboot
2 Execution result
Run hello-world.
$ docker run hello-world <snip> Hello from Docker! <snip>