Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created October 18, 2015 12:05
Show Gist options
  • Save tuki0918/31e4e9f53eb4b11406a0 to your computer and use it in GitHub Desktop.
Save tuki0918/31e4e9f53eb4b11406a0 to your computer and use it in GitHub Desktop.
Docker memo
項目名 内容
FROM 作成元のコンテナーイメージを「リポジトリー:タグ名」で指定
MAINTAINER コンテナーイメージ作成者の名前を記載
ENV コマンド実行時の環境変数を設定
RUN 指定のコマンドを実行
ADD イメージ内にファイルを追加
EXPOSE コンテナー内のアプリケーションが使用するポート番号を登録
CMD コンテナー起動時に実行するコマンドを指定
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment