1
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 pull IMAGE
  • イメージからコンテナ作成

    • docker create [OPTIONS] IMAGE名
      • -h: host名
      • -name: コンテナ名
  • コンテナ起動

    • docker start [OPTIONS] コンテナ
  • イメージ取得+コンテナ作成+起動

    • docker run [OPTIONS] コンテナ COMMAND
      *
  • 起動しているコンテナに別pidで接続

    • docker exec [OPTIONS] コンテナ名 コマンド
    • docker exec -it COMTAINER /bin/bash
      • -it: /bin/bashと組み合わせると、shellが出てくる(お約束)
1
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
1
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?