0
0

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 1 year has passed since last update.

基本的なDockerコマンドまとめ

Posted at

・Dockerイメージからコンテナを作成し、そのコンテナを実行

docker run

・Dockerイメージからデタッチドモード(バックグラウンド)でコンテナを実行

docker run -d

・現在実行中のコンテナの一覧を表示

docker ps

・実行中と停止中のすべてのコンテナの一覧を表示

docker ps -a

・ローカルに保存されているすべてのDockerイメージの一覧を表示

docker images

・Docker Hubなどのリポジトリからイメージをダウンロード

docker pull

・指定したコンテナを停止

docker stop

・指定したコンテナを削除

docker rm

・Dockerイメージを削除

docker rmi

・コンテナ内でコマンドを実行

docker exec

・コンテナ内で実行されているプロセスの出力を表示

docker attach

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?