LoginSignup
0
0

More than 1 year has passed since last update.

Dockerコマンド

Last updated at Posted at 2022-04-08

背景

Dockerコマンドをまとめた備忘録です。

コマンド

  • Dockerのバージョンを確認するコマンド
docker version
  • Dockerの実行環境を確認するコマンド
docker info
  • Dockerイメージの一覧を表示するコマンド
docker images
  • Dockerイメージを作成するコマンド
docker build -t [作成するイメージ名] [Dockerfileの場所]
  • Dockerコンテナを作成するコマンド 
    ※起動はしない
docker create -it [イメージID]
  • Dockerコンテナを作成&起動
docker run [オプション] [イメージ名:タグ名] [引数]
  • 起動しているコンテナの一覧を表示するコマンド
docker ps
  • 存在するコンテナの一覧を表示するコマンド
docker ps -a
  • コンテナを起動するコマンド
docker start [コンテナID]
  • コンテナを停止するコマンド
docker stop [コンテナID]
  • 起動中のコンテナにログインするコマンド
docker exec -it [コンテナID] [引数]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0