MacでDocker環境を構築
#docker
Get Started with Docker ( https://www.docker.com/get-started ) を見ながら。
Docker Desktop for Macをダウンロード & インストール
以下を試す
Clone
cd ~/src
git clone https://github.com/docker/getting-started.git
Build
cd getting-started/
docker build -t docker101tutorial .
Run
docker run -d -p 80:80 --name docker-tutorial docker101tutorial
ブラウザで http://localhost/ を開くとなんか表示される
Share
docker tag docker101tutorial thata/docker101tutorial
docker push thata/docker101tutorial
pushしたイメージはここで確認できる
https://hub.docker.com/repositories
手元で動作確認してみる
docker run hello-world
Hello from Docker! が表示された