mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 14:35:23 +02:00
docker-build: add Traditional Chinese translation (#15729)
* grep: add Traditional Chinese translation * grep: Complete the content of Traditional Chinese translation * docker-build: add Traditional Chinese translation * docker-build: Remove redundant space to satisfy more information rule * docker-build: Change the colon from the English input method to the colon from the Chinese input method. * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> * Update pages.zh_TW/common/docker-build.md Co-authored-by: Jack Lin <blueskyson1401@gmail.com> --------- Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
This commit is contained in:
parent
f6909a0d9b
commit
0c0b9b07cd
1 changed files with 32 additions and 0 deletions
32
pages.zh_TW/common/docker-build.md
Normal file
32
pages.zh_TW/common/docker-build.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# docker build
|
||||
|
||||
> 從 Dockerfile 建立 Docker 映像檔 (Image)。
|
||||
> 更多資訊:<https://docs.docker.com/reference/cli/docker/buildx/build/>.
|
||||
|
||||
- 使用當前目錄的 Dockerfile 建立映像檔:
|
||||
|
||||
`docker build .`
|
||||
|
||||
- 從指定的網址下載 Dockerfile 來建立映像檔:
|
||||
|
||||
`docker build {{github.com/creack/docker-firefox}}`
|
||||
|
||||
- 建立 Docker 映像檔並加上標籤:
|
||||
|
||||
`docker build --tag {{名稱:標籤}} .`
|
||||
|
||||
- 不使用建構上下文(Build Context)來建立映像檔:
|
||||
|
||||
`docker build --tag {{名稱:標籤}} - < {{Dockerfile}}`
|
||||
|
||||
- 在建構映像檔時不使用快取:
|
||||
|
||||
`docker build --no-cache --tag {{名稱:標籤}} .`
|
||||
|
||||
- 使用特定的 Dockerfile 來建構映像檔:
|
||||
|
||||
`docker build --file {{Dockerfile}} .`
|
||||
|
||||
- 在建構時傳遞自訂的變數:
|
||||
|
||||
`docker build --build-arg {{HTTP_PROXY=http://10.20.30.2:1234}} --build-arg {{FTP_PROXY=http://40.50.60.5:4567}} .`
|
Loading…
Add table
Reference in a new issue