業界トップクラスの求人数を誇る転職エージェントPR

リクルートグループのコネクションを活かした非公開求人も充実、他にはない好条件の求人と出会える

1
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のコマンドメモ

  • イメージの取得

    • 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
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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
1
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?