※当サイトの記事には、広告・プロモーションが含まれます。

Docker Compose fileの設定を元にDockerイメージを取得するパターンが多過ぎるのだが...

codezine.jp

 GitHubは4月8日(現地時間)、組織向けのコードセキュリティリスク評価機能をリリースした。

GitHub、組織向けに無料のコードセキュリティリスク評価機能を追加|CodeZine(コードジン)

 組織管理者やセキュリティ管理者は、この機能を使って、組織全体のセキュリティ脆弱性を無料で調査できる。評価レポートは、脆弱性を重大度・ルール種別・プログラミング言語ごとにまとめ、推奨される対策も表示する。

GitHub、組織向けに無料のコードセキュリティリスク評価機能を追加|CodeZine(コードジン)

⇧ どの程度のレベル感なのかしら?

例えば、「決済システム」とかだと「DUKPT(Derived Unique Key Per Transaction)」のような実装の不備が仮にあった場合に、具体的な実装を提示してくれるのだろうか?

つまり、どこまで面倒を見てくれるのかをハッキリさせて欲しいですな…

Docker Compose fileの設定を元にDockerイメージを取得するパターンが多過ぎるのだが...

いまいち、

  1. Docker Compose fileの設定
  2. Docker Compose系のコマンド

の関係が分かっていないのだが、

『Docker Compose fileの設定とDockerイメージ取得の関係についてのパターン』

について「ChatGPT」氏に質問してみたところ、以下のような回答が返ってきた。

 

📌 Docker Compose fileの設定とDockerイメージ取得の関係についてのパターン

No パターン Compose設定 Dockerfile必須 最終取得元 中間取得元 入手方法 実行コマンド 自動build 自動pull 主用途
1 imageのみ(ローカル) image: myapp:v1 ❌ ローカル なし 既存利用 docker compose up ❌ ❌ 開発
2 imageのみ(リモート) image: nginx:latest ❌ レジストリ なし pull docker compose pull / up ❌ 条件付 本番
3 image + digest image: myapp@sha256:abcdef ❌ レジストリ なし pull docker compose pull ❌ ✅ 再現性
4 image:latest image: myapp:latest ❌ レジストリ なし pull docker compose pull ❌ 条件付 開発
5 buildのみ(デフォルトDockerfile) build: ./app ✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 開発
6 build + imageタグ build: ./app
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ CI/CD
7 build + context build:
context: ./app1
image: myapp:app1
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
8 build + dockerfile build:
context: ./app
dockerfile: Dockerfile.prod
image: myapp:prod
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 本番
9 build + args build:
context: ./app
args:
ENV: dev
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
10 build + multiple args build:
context: ./app
args:
ENV: dev
VERSION: 1.2
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI
11 build + target build:
context: ./app
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
12 build + target + args build:
context: ./app
target: builder
args:
ENV: prod
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
13 build + cache_from build:
context: ./app
cache_from: myapp:prev
image: myapp:cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
14 build + inline cache build:
context: ./app
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
15 build + FROMリモート build: ./app
image: myapp:latest
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 通常build
16 build + multi-stage build:
context: ./app
dockerfile: Dockerfile.multi
image: myapp:multi
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 軽量化
17 build + context/dockerfile/args/target build:
context: ./app1
dockerfile: Dockerfile.dev
args:
ENV: dev
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
18 build + context/dockerfile/args/target + cache_from build:
context: ./app2
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI/CD
19 profile切替(build) build: ./app
profiles: ["dev"]
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose --profile dev up --build ✅ ❌ 開発
20 profile切替(image) image: myapp:prod
profiles: ["prod"]
❌ レジストリ なし pull docker compose --profile prod up ❌ ✅ 本番
21 CI: build→push build: ./app
image: myregistry/myapp:${TAG}
✅ レジストリ FROM: レジストリ build → push docker compose build ✅ 任意 CI
22 CD: pull→deploy image: myregistry/myapp:latest ❌ レジストリ なし pull docker compose pull / up -d ❌ ✅ 本番
23 offline完全ローカルbuild build:
context: ./app
dockerfile: Dockerfile.local
✅ ローカル ローカル build docker compose build ✅ ❌ オフライン
24 build + digest固定 build: ./app
image: myapp@sha256:abcdef
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 再現性
25 build + context複数 build:
context: ./app1
image: myapp:app1
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
26 build + context複数 + dockerfile build:
context: ./app1
dockerfile: Dockerfile.prod
image: myapp:prod
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
27 build + target複数 build:
context: ./app2
dockerfile: Dockerfile.dev
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
28 build + args複数 build:
context: ./app2
dockerfile: Dockerfile.dev
args:
ENV: dev
VERSION: 1.2
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI
29 build + target + args + cache_from build:
context: ./app1
dockerfile: Dockerfile.prod
target: final
args:
ENV: prod
cache_from: myapp:prev
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
30 build + inline cache + args build:
context: ./app2
dockerfile: Dockerfile.dev
args:
ENV: dev
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
31 build + context/dockerfile/target + profile build:
context: ./app1
dockerfile: Dockerfile.dev
target: builder
profiles: ["dev"]
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
32 build + context/dockerfile/target + profile prod build:
context: ./app2
dockerfile: Dockerfile.prod
target: final
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 本番
33 imageのみ + profile image: myapp:latest
profiles: ["dev"]
❌ レジストリ なし pull docker compose --profile dev pull / up ❌ ✅ 開発
34 build + args + target + inline cache build:
context: ./app
args:
ENV: dev
target: builder
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
35 build + cache_from + inline cache build:
context: ./app
cache_from: myapp:prev
cache: type=inline
image: myapp:cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
36 build + args + target + digest固定 build:
context: ./app
target: final
args:
ENV: prod
image: myapp@sha256:abcdef
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 再現性
37 build + multi-stage + target build:
context: ./app
dockerfile: Dockerfile.multi
target: final
image: myapp:multi-final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 軽量化
38 build + args + target + cache_from + inline build:
context: ./app
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
39 build + context + dockerfile + args + inline build:
context: ./app1
dockerfile: Dockerfile.dev
args:
ENV: dev
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
40 build + context + dockerfile + target + profile build:
context: ./app2
dockerfile: Dockerfile.prod
target: final
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 本番
1 imageのみ(ローカル) image: myapp:v1 ❌ ローカル なし 既存利用 docker compose up ❌ ❌ 開発
2 imageのみ(リモート) image: nginx:latest ❌ レジストリ なし pull docker compose pull / up ❌ 条件付 本番
3 image + digest image: myapp@sha256:abcdef ❌ レジストリ なし pull docker compose pull ❌ ✅ 再現性
4 image:latest image: myapp:latest ❌ レジストリ なし pull docker compose pull ❌ 条件付 開発
5 buildのみ(デフォルトDockerfile) build: ./app ✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 開発
6 build + imageタグ build: ./app
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ CI/CD
7 build + context build:
context: ./app1
image: myapp:app1
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
8 build + dockerfile build:
context: ./app
dockerfile: Dockerfile.prod
image: myapp:prod
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 本番
9 build + args build:
context: ./app
args:
ENV: dev
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
10 build + multiple args build:
context: ./app
args:
ENV: dev
VERSION: 1.2
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI
11 build + target build:
context: ./app
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
12 build + target + args build:
context: ./app
target: builder
args:
ENV: prod
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
13 build + cache_from build:
context: ./app
cache_from: myapp:prev
image: myapp:cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
14 build + inline cache build:
context: ./app
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
15 build + FROMリモート build: ./app
image: myapp:latest
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 通常build
16 build + multi-stage build:
context: ./app
dockerfile: Dockerfile.multi
image: myapp:multi
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 軽量化
17 build + context/dockerfile/args/target build:
context: ./app1
dockerfile: Dockerfile.dev
args:
ENV: dev
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
18 build + context/dockerfile/args/target + cache_from build:
context: ./app2
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI/CD
19 profile切替(build) build: ./app
profiles: ["dev"]
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose --profile dev up --build ✅ ❌ 開発
20 profile切替(image) image: myapp:prod
profiles: ["prod"]
❌ レジストリ なし pull docker compose --profile prod up ❌ ✅ 本番
21 CI: build→push build: ./app
image: myregistry/myapp:${TAG}
✅ レジストリ FROM: レジストリ build → push docker compose build ✅ 任意 CI
22 CD: pull→deploy image: myregistry/myapp:latest ❌ レジストリ なし pull docker compose pull / up -d ❌ ✅ 本番
23 offline完全ローカルbuild build:
context: ./app
dockerfile: Dockerfile.local
✅ ローカル ローカル build docker compose build ✅ ❌ オフライン
24 build + digest固定 build: ./app
image: myapp@sha256:abcdef
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 再現性
25 build + context複数 build:
context: ./app1
image: myapp:app1
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
26 build + context複数 + dockerfile build:
context: ./app1
dockerfile: Dockerfile.prod
image: myapp:prod
✅ ローカル FROM: レジストリ build docker compose build ✅ ❌ 複数アプリ
27 build + target複数 build:
context: ./app2
dockerfile: Dockerfile.dev
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 ステージ制御
28 build + args複数 build:
context: ./app2
dockerfile: Dockerfile.dev
args:
ENV: dev
VERSION: 1.2
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI
29 build + target + args + cache_from build:
context: ./app1
dockerfile: Dockerfile.prod
target: final
args:
ENV: prod
cache_from: myapp:prev
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
30 build + inline cache + args build:
context: ./app2
dockerfile: Dockerfile.dev
args:
ENV: dev
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
31 build + context/dockerfile/target + profile build:
context: ./app1
dockerfile: Dockerfile.dev
target: builder
profiles: ["dev"]
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
32 build + context/dockerfile/target + profile prod build:
context: ./app2
dockerfile: Dockerfile.prod
target: final
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 本番
33 imageのみ + profile image: myapp:latest
profiles: ["dev"]
❌ レジストリ なし pull docker compose --profile dev pull / up ❌ ✅ 開発
34 build + args + target + inline cache build:
context: ./app
args:
ENV: dev
target: builder
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
35 build + cache_from + inline cache build:
context: ./app
cache_from: myapp:prev
cache: type=inline
image: myapp:cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 任意 CI高速化
36 build + args + target + digest固定 build:
context: ./app
target: final
args:
ENV: prod
image: myapp@sha256:abcdef
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 再現性
37 build + multi-stage + target build:
context: ./app
dockerfile: Dockerfile.multi
target: final
image: myapp:multi-final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 軽量化
38 build + args + target + cache_from + inline build:
context: ./app
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
39 build + context + dockerfile + args + inline build:
context: ./app1
dockerfile: Dockerfile.dev
args:
ENV: dev
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
40 build + context + dockerfile + target + profile build:
context: ./app2
dockerfile: Dockerfile.prod
target: final
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 本番
41 build + context + dockerfile + args + target + profile build:
context: ./app1
dockerfile: Dockerfile.dev
args:
ENV: dev
target: builder
profiles: ["dev"]
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
42 build + context + dockerfile + args + target + inline build:
context: ./app2
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
43 build + context + dockerfile + args + target + cache_from build:
context: ./app1
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
44 build + context + dockerfile + target + inline + profile build:
context: ./app2
dockerfile: Dockerfile.dev
target: builder
cache: type=inline
profiles: ["dev"]
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
45 build + context + dockerfile + target + cache_from + profile build:
context: ./app1
dockerfile: Dockerfile.prod
target: final
cache_from: myapp:prev
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD
46 build + multi-stage + args build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: prod
image: myapp:multi-args
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 本番
47 build + multi-stage + args + target build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: prod
target: final
image: myapp:multi-final
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 本番
48 build + multi-stage + args + target + cache_from build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: prod
target: final
cache_from: myapp:prev
image: myapp:multi-cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
49 build + multi-stage + args + target + inline build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: dev
target: builder
cache: type=inline
image: myapp:multi-inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
50 build + multi-stage + args + target + inline + profile build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: dev
target: builder
cache: type=inline
profiles: ["dev"]
image: myapp:multi-inline
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 CI高速化
51 imageのみ + digest + profile image: myapp@sha256:abcdef
profiles: ["prod"]
❌ レジストリ なし pull docker compose --profile prod pull ❌ ✅ 本番
52 imageのみ + tag + profile image: myapp:dev
profiles: ["dev"]
❌ レジストリ なし pull docker compose --profile dev pull ❌ ✅ 開発
53 build + context + dockerfile + args + target + cache_from + inline build:
context: ./app
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
image: myapp:full-ci
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
54 build + context + dockerfile + args + target + cache_from + inline + profile build:
context: ./app
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
profiles: ["prod"]
image: myapp:full-ci-prod
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD
55 build + args + target + profile build:
context: ./app
args:
ENV: dev
target: builder
profiles: ["dev"]
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
56 build + args + target + inline + profile build:
context: ./app
args:
ENV: dev
target: builder
cache: type=inline
profiles: ["dev"]
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 CI高速化
57 build + args + target + cache_from + profile build:
context: ./app
args:
ENV: prod
target: final
cache_from: myapp:prev
profiles: ["prod"]
image: myapp:final
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD
58 build + multi-stage + args + target + cache_from + inline build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
image: myapp:multi-full
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI/CD
59 build + multi-stage + args + target + cache_from + inline + profile build:
context: ./app
dockerfile: Dockerfile.multi
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
profiles: ["prod"]
image: myapp:multi-full-prod
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD
60 build + context + dockerfile + args + target + cache_from + inline + profile build:
context: ./app
dockerfile: Dockerfile.prod
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
profiles: ["prod"]
image: myapp:full-complete
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD
61 imageのみ + context指定(無効) image: myapp:latest
build: {context: ./ignored}
❌ レジストリ なし pull docker compose pull ❌ ✅ 本番
62 build + argsのみ(デフォルトDockerfile) build:
context: ./app
args:
ENV: dev
image: myapp:args
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
63 build + targetのみ(デフォルトDockerfile) build:
context: ./app
target: builder
image: myapp:builder
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 開発
64 build + cache_fromのみ build:
context: ./app
cache_from: myapp:prev
image: myapp:cache
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
65 build + inlineのみ build:
context: ./app
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
66 build + profileのみ build: ./app
profiles: ["dev"]
image: myapp:dev
✅ ローカル FROM: レジストリ build docker compose --profile dev build ✅ 内部 開発
67 build + args + inline build:
context: ./app
args:
ENV: dev
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
68 build + target + inline build:
context: ./app
target: builder
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
69 build + args + target + inline build:
context: ./app
args:
ENV: dev
target: builder
cache: type=inline
image: myapp:inline
✅ ローカル FROM: レジストリ build docker compose build ✅ 内部 CI高速化
70 build + args + target + cache_from + inline + profile build:
context: ./app
args:
ENV: prod
target: final
cache_from: myapp:prev
cache: type=inline
profiles: ["prod"]
image: myapp:full-ci-prod
✅ ローカル FROM: レジストリ build docker compose --profile prod build ✅ 内部 CI/CD

 

✅ まとめ

  • 設定項目や環境(context指定、Dockerfile存在、取得元など)をすべて考慮すると、理論上 1928 パターン になります。
  • これは あくまで設定組み合わせの網羅 であり、実際に全てのパターンが Docker Compose で意味のある操作になるわけではありません。
  • 実際に build 可能なのは Dockerfile が存在する場合のみなど制約があります。

 

う~む...

主要なパターンだけでも70パターンあると言われたのだが...

とりあえず、パターンが多過ぎるのよ...

 

■Compose fileの設定

docs.docker.jp

docs.docker.jp

 

■Docker Compose系のコマンド

※ Docker イメージ取得に関係してきそうなコマンド

docs.docker.jp

docs.docker.jp

docs.docker.jp

 

まぁ、

  1. Docker Compose fileの設定
  2. Docker Compose系のコマンド

を突き合わせて読解するしかないのだが...

とりあえず、build がある場合は、「Dockefile」が必須っぽいので、「Dockefile」が見当たらないのであれば、

  • tar ballからloadする
    • docker load
  • Docker Registoryからpullする
    • docker compose pull

のどちらかになるのかな?

ただ、「tar ballからloadする」方式の場合は、事前に「Dockerイメージ」を用意する必要があるはずなのよね...

 

ちなみに、「Docker Compose」においては、「Dockerイメージ」の確認で、

docs.docker.jp

docs.docker.jp

⇧ 上記の2つが利用できそうではある。

「Dockerコンテナ」が使用している「Dockerイメージ」を確認するには、「docker compose images」を利用するのが良さそうということですかね。

 

兎にも角にも、手順がメンテナンスされていない開発現場なので推測するしかないところが辛過ぎるのよ...

今日も今日とて、不毛な時間を強いられる日々ですな...

 

毎度モヤモヤ感が半端ない…

今回はこのへんで。