Last active
August 29, 2015 14:10
-
-
Save mapyo/5e3d417648eeddb4e9d4 to your computer and use it in GitHub Desktop.
Dockerfileを編集して確認してまたDockerfileを編集しての一連のサイクルについて考える ref: http://qiita.com/mapyo/items/2cb828050844bb9aed58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfileの編集 | |
vim Dockerfile | |
# イメージのビルド。testという名前 | |
docker build -t test . | |
# コンテナ起動して確認。hogeという名前。コンテナからexitで抜けたら、そのコンテナを自動的に消す。 | |
docker run -i -t -—rm --name hoge test:latest /bin/bash | |
# 内容を確認して、またDockerfileを編集する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--rm=false Automatically remove the container when it exits (incompatible with -d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment