2
6

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

2行で

  • docker ps
  • docker exec -it コンテナ名 bash

ターミナルでコマンドを打ちます。

起動中のコンテナ一覧を確認

$ docker ps

NAMES のところを確認する。これがコンテナ名。

コンテナに入る

$ docker exec -it コンテナ名 bash

-it というオプションについては -i-t の合わせワザなんだけど、詳細は以下の記事。

Docker exec -it とは
https://hacknote.jp/archives/56621/

2
6
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
2
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?