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


Table of Contents

1 Dockerをインストールする

Dockerをインストールします。

#!/bin/sh -e# Install Docker.sudo apt install -y docker.io docker-composesudo systemctl enable dockersudo systemctl start docker# Add user to docker group which can use 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