0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Docker】コマンド一覧

Posted at

[] 内は省略可能

  • コンテナを作成し起動 [バックグラウンドで実行]
docker-compose up [-d]
  • コンテナ起動(既にコンテナがある状態で)
docker start <コンテナ名>
  • コンテナ停止
docker stop <コンテナ名>
  • 全てのコンテナ停止
docker stop $(docker ps -q)
  • コンテナ起動状況確認 [停止しているコンテナも取得]
docker ps [-a]
  • イメージ実行
docker run <イメージ>
  • イメージ一覧表示
docker images
  • サービスのビルドを実行
docker-compose build
  • 実行中コンテナ内で、新しいコマンドを実行
docker exec [オプション] <コンテナ> <コマンド> [引数]
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?