docker buildx debug build
描述 | 啟動構建 |
---|---|
用法 | docker buildx debug build [OPTIONS] PATH | URL | - |
別名 | docker build docker builder build docker image build docker buildx b |
實驗性
此命令是實驗性的。
實驗性功能旨在用於測試和反饋,因為它們的功能或設計可能會在版本之間未經警告而更改,或者在未來的版本中被完全刪除。
描述
啟動構建
選項
選項 | 預設值 | 描述 |
---|---|---|
--add-host | 新增自定義主機到 IP 對映(格式:host:ip ) | |
--allow | 允許額外的特權授權(例如,network.host ,security.insecure ) | |
--annotation | 向映象添加註解 | |
--attest | 證明引數(格式:type=sbom,generator=image ) | |
--build-arg | 設定構建時變數 | |
--build-context | 額外的構建上下文(例如,name=path) | |
--cache-from | 外部快取源(例如,user/app:cache ,type=local,src=path/to/dir ) | |
--cache-to | 快取匯出目的地(例如,user/app:cache ,type=local,dest=path/to/dir ) | |
--call | build | 設定評估構建的方法(check ,outline ,targets ) |
--cgroup-parent | 設定構建期間 RUN 指令的父 cgroup | |
--check | --call=check 的簡寫 | |
-f, --file | Dockerfile 的名稱(預設:PATH/Dockerfile ) | |
--iidfile | 將映象 ID 寫入檔案 | |
--label | 為映象設定元資料 | |
--load | --output=type=docker 的簡寫 | |
--metadata-file | 將構建結果元資料寫入檔案 | |
--network | 設定構建期間 RUN 指令的網路模式 | |
--no-cache | 構建映象時不使用快取 | |
--no-cache-filter | 不快取指定階段 | |
-o, --output | 輸出目的地(格式:type=local,dest=path ) | |
--platform | 設定構建的目標平臺 | |
--progress | auto | 設定進度輸出型別(auto ,quiet ,plain ,tty ,rawjson )。使用 plain 顯示容器輸出 |
--provenance | --attest=type=provenance 的簡寫 | |
--pull | 始終嘗試拉取所有引用的映象 | |
--push | --output=type=registry 的簡寫 | |
-q, --quiet | 抑制構建輸出並在成功時列印映象 ID | |
--sbom | --attest=type=sbom 的簡寫 | |
--secret | 暴露給構建的秘密(格式:id=mysecret[,src=/local/secret] ) | |
--shm-size | 構建容器的共享記憶體大小 | |
--ssh | 暴露給構建的 SSH 代理套接字或金鑰(格式:default|<id>[=<socket>|<key>[,<key>]] ) | |
-t, --tag | 名稱和可選的標籤(格式:name:tag ) | |
--target | 設定要構建的目標構建階段 | |
--ulimit | Ulimit 選項 |