{
 "管理映像檔:pull、tag、digest 與清理#2": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "docker pull",
    "sub": "nginx:1.27-alpine",
    "color": 0
   },
   {
    "label": "拉取標籤",
    "sub": "來自 library",
    "color": 1
   },
   {
    "label": "Digest",
    "sub": "sha256 雜湊",
    "color": 2
   },
   {
    "label": "Status",
    "sub": "已下載較新映像",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "管理映像檔:pull、tag、digest 與清理#6": {
  "type": "bar",
  "reveal": [
   1,
   2,
   2,
   2
  ],
  "labels": [
   "nginx",
   "alpine"
  ],
  "values": [
   48,
   8
  ],
  "unit": "MB"
 },
 "管理映像檔:pull、tag、digest 與清理#7": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "指令/選項",
   "用途"
  ],
  "rows": [
   [
    "--format",
    "自訂顯示欄位"
   ],
   [
    "docker image inspect",
    "JSON 詳細資訊"
   ],
   [
    "docker image history",
    "看每一層來源"
   ]
  ],
  "widths": [
   3,
   3
  ]
 },
 "容器生命週期與 docker run 常用選項#1": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4,
   4
  ],
  "nodes": [
   {
    "label": "created",
    "sub": "docker create",
    "color": 0
   },
   {
    "label": "running",
    "sub": "執行中",
    "color": 1
   },
   {
    "label": "paused",
    "sub": "docker pause",
    "color": 2
   },
   {
    "label": "exited",
    "sub": "已結束",
    "color": 3,
    "kind": "end"
   }
  ],
  "layout": "cycle",
  "edges": [
   [
    0,
    1,
    "start"
   ],
   [
    1,
    2,
    "pause"
   ],
   [
    1,
    3,
    "stop"
   ]
  ]
 },
 "容器生命週期與 docker run 常用選項#3": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "head": [
   "選項",
   "用途"
  ],
  "rows": [
   [
    "-d",
    "背景執行"
   ],
   [
    "-it",
    "互動式終端機"
   ],
   [
    "--name",
    "替容器取名字"
   ],
   [
    "--rm",
    "結束後自動刪除"
   ],
   [
    "-p",
    "主機埠:容器埠"
   ]
  ],
  "widths": [
   2,
   4
  ]
 },
 "容器生命週期與 docker run 常用選項#4": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "head": [
   "選項",
   "用途"
  ],
  "rows": [
   [
    "-e",
    "設定環境變數"
   ],
   [
    "-v",
    "掛載 volume 或目錄"
   ],
   [
    "--network",
    "加入指定網路"
   ],
   [
    "--restart",
    "設定重啟策略"
   ],
   [
    "-w",
    "指定工作目錄"
   ]
  ],
  "widths": [
   2,
   4
  ]
 },
 "容器生命週期與 docker run 常用選項#6": {
  "type": "flow",
  "reveal": [
   0,
   3
  ],
  "nodes": [
   {
    "label": "nginx 映像檔",
    "sub": "1.27-alpine",
    "color": 0
   },
   {
    "label": "web",
    "sub": "-d 背景容器",
    "color": 1
   },
   {
    "label": "8080 → 80",
    "sub": "-p 埠對應",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "容器生命週期與 docker run 常用選項#7": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "head": [
   "指令",
   "結果"
  ],
  "rows": [
   [
    "docker ps",
    "只列執行中"
   ],
   [
    "docker ps -a",
    "含已結束的"
   ],
   [
    "docker ps -q",
    "只印容器 ID"
   ],
   [
    "--filter",
    "依條件篩選"
   ],
   [
    "--format",
    "自訂欄位"
   ]
  ],
  "widths": [
   3,
   3
  ]
 },
 "進入容器、查看日誌與資源限制#1": {
  "type": "flow",
  "reveal": [
   0,
   2,
   3,
   3
  ],
  "nodes": [
   {
    "label": "主程序輸出",
    "sub": "stdout/stderr",
    "color": 0
   },
   {
    "label": "Docker 收集",
    "color": 1
   },
   {
    "label": "docker logs",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "進入容器、查看日誌與資源限制#2": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "docker logs web",
    "印出全部日誌"
   ],
   [
    "logs -f web",
    "持續追蹤"
   ],
   [
    "logs --tail 50 web",
    "只看最後 50 行"
   ]
  ],
  "widths": [
   3,
   3
  ]
 },
 "進入容器、查看日誌與資源限制#4": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "精簡映像",
    "points": [
     "常沒有 bash",
     "改用 sh"
    ]
   },
   {
    "title": "只限執行中",
    "points": [
     "已結束可改用",
     "docker run --entrypoint"
    ]
   },
   {
    "title": "修改在可寫層",
    "points": [
     "改 Dockerfile 重建",
     "或用 volume 掛設定檔"
    ]
   }
  ]
 },
 "進入容器、查看日誌與資源限制#5": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "exec web nginx -v",
    "跑單一指令後結束"
   ],
   [
    "exec -it web sh",
    "開互動式 shell"
   ],
   [
    "exec -u root -it web sh",
    "以 root 身分進入"
   ]
  ],
  "widths": [
   4,
   3
  ]
 },
 "進入容器、查看日誌與資源限制#7": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "指令",
   "輸出"
  ],
  "rows": [
   [
    "docker inspect web",
    "完整 JSON"
   ],
   [
    "inspect -f State.Status",
    "running"
   ],
   [
    "inspect -f State.ExitCode",
    "結束碼"
   ]
  ],
  "widths": [
   4,
   3
  ]
 }
}