Dockerコマンドのまとめ

コンテナ内からホストへファイルをコピー

$ docker cp <ContainerId>:/path/to/file/in/container /target/path/in/host

起動中のコンテナにログイン

$ docker exec -it <ContainerId> bash

ログ(コンテナからの標準出力)の確認

$ docker logs <ContainerId>

コメントを残す

Required fields are marked *.


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Top