Fedora 27: Install Docker for container

Table of Contents

1 Install Docker

The following script will install Docker.

#!/bin/shset -e# Install Docker.URL=https://download.docker.com/linux/fedora/docker-ce.reposudo dnf -y install dnf-plugins-coresudo dnf config-manager –add-repo ${URL}sudo dnf config-manager –set-enabled docker-ce-edge# docker-ce for 27 is not exists on 2017/12/7.# shellcheck disable=SC2016sudo sed -e ‘s/$releasever/26/g’ -i /etc/yum.repos.d/docker-ce.reposudo dnf install -y docker-cesudo systemctl start dockersudo systemctl enable docker# Add docker group for running docker without sudo.sudo gpasswd -a “${USER}” dockersudo reboot

2 Execution result

Run hello-world.

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

Android | Linux | SDL - Narrow Escape