CentOS 7: docker-engineをインストールする


Table of Contents

1 docker-engineをインストールする

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

#!/bin/shURL=https://docs.docker.comPASS=${URL}/engine/installation/linux/repo_files/centos/docker.reposudo yum-config-manager –add-repo ${PASS}sudo mkdir -p /var/lib/docker # docker-engine-selinux issuesudo yum install -y docker-enginesudo systemctl start dockersudo systemctl enable dockersudo gpasswd -a hiroom2 dockersudo reboot

2 動作確認

hello-worldを実行します。

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

Android | Linux | SDL - Narrow Escape