mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
Add BuildArg example into documentation
Signed-off-by: givensuman <givensuman@duck.com>
This commit is contained in:
@@ -2166,7 +2166,7 @@ Yaml=/opt/k8s/deployment.yml
|
|||||||
WantedBy=multi-user.target default.target
|
WantedBy=multi-user.target default.target
|
||||||
```
|
```
|
||||||
|
|
||||||
Example for locally built image to be used in a container:
|
Example for locally built image to be used in a container with build-specific arguments:
|
||||||
|
|
||||||
`test.build`
|
`test.build`
|
||||||
```
|
```
|
||||||
@@ -2178,6 +2178,9 @@ ImageTag=localhost/imagename
|
|||||||
# expecting to find a Containerfile/Dockerfile
|
# expecting to find a Containerfile/Dockerfile
|
||||||
# + other files needed to build the image
|
# + other files needed to build the image
|
||||||
SetWorkingDirectory=unit
|
SetWorkingDirectory=unit
|
||||||
|
# Set build arguments VERSION and DEBUG
|
||||||
|
BuildArg=VERSION=1.0 \
|
||||||
|
DEBUG=false
|
||||||
```
|
```
|
||||||
|
|
||||||
`test.container`
|
`test.container`
|
||||||
|
|||||||
Reference in New Issue
Block a user