Skip to content

Instantly share code, notes, and snippets.

@mapyo
Last active August 29, 2015 14:10
Show Gist options
  • Save mapyo/5e3d417648eeddb4e9d4 to your computer and use it in GitHub Desktop.
Save mapyo/5e3d417648eeddb4e9d4 to your computer and use it in GitHub Desktop.
Dockerfileを編集して確認してまたDockerfileを編集しての一連のサイクルについて考える ref: http://qiita.com/mapyo/items/2cb828050844bb9aed58
# Dockerfileの編集
vim Dockerfile
# イメージのビルド。testという名前
docker build -t test .
# コンテナ起動して確認。hogeという名前。コンテナからexitで抜けたら、そのコンテナを自動的に消す。
docker run -i -t -—rm --name hoge test:latest /bin/bash
# 内容を確認して、またDockerfileを編集する
--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