mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 14:02:44 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,19 +18,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Build a Docker image and tag it:
|
||||
|
||||
`docker build --tag {{name:tag}} .`
|
||||
`docker build {{[-t|--tag]}} {{name:tag}} .`
|
||||
|
||||
- Build a Docker image with no build context:
|
||||
|
||||
`docker build --tag {{name:tag}} - < {{Dockerfile}}`
|
||||
`docker build {{[-t|--tag]}} {{name:tag}} - < {{Dockerfile}}`
|
||||
|
||||
- Do not use the cache when building the image:
|
||||
|
||||
`docker build --no-cache --tag {{name:tag}} .`
|
||||
`docker build --no-cache {{[-t|--tag]}} {{name:tag}} .`
|
||||
|
||||
- Build a Docker image using a specific Dockerfile:
|
||||
|
||||
`docker build --file {{Dockerfile}} .`
|
||||
`docker build {{[-f|--file]}} {{Dockerfile}} .`
|
||||
|
||||
- Build with custom build-time variables:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user