Fedora 28: コンテナ技術のDockerをインストールする


Table of Contents

1 Dockerをインストールする

以下のスクリプトを実行します。

#!/bin/sh -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-edgesudo 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 動作確認

hello-worldを実行します。

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

Android | Linux | SDL - Narrow Escape