mirror of https://github.com/docker/docs.git
fixed build command per user feedback (#3930)
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
parent
1c6ff26042
commit
3164a2a9ea
|
@ -80,7 +80,7 @@ Docker Cloud allows you to define build environment variables either in the hook
|
|||
In the following example, we define a build hook that uses `docker build` arguments to set the variable `CUSTOM` based on the value of variable we defined using the Docker Cloud build settings. `$IMAGE_NAME` is a variable that we provide with the name of the image being built.
|
||||
|
||||
```none
|
||||
docker build --build-arg CUSTOM=$VAR -t $IMAGE_NAME
|
||||
docker build --build-arg CUSTOM=$VAR -t $IMAGE_NAME .
|
||||
```
|
||||
|
||||
> **Caution**: A `hooks/build` file overrides the basic [docker build](/engine/reference/commandline/build.md) command
|
||||
|
|
Loading…
Reference in New Issue