828: revert context to workspace, clean up doc
This commit is contained in:
parent
d9c0c359eb
commit
8f7eb00433
|
|
@ -255,8 +255,8 @@ We can run the kaniko executor image locally in a Docker daemon to build and pus
|
|||
./run_in_docker.sh <path to Dockerfile> <path to build context> <destination of final image>
|
||||
```
|
||||
|
||||
**NOTE**: When running in Docker, Kaniko expects the absolute path to a
|
||||
local build context, and a Dockerfile path _inside_ the container.
|
||||
_NOTE: `run_in_docker.sh` expects a path to a
|
||||
Dockerfile relative to the absolute path of the build context._
|
||||
|
||||
An example run, specifying the Dockerfile in the container directory `/workspace`, the build
|
||||
context in the local directory `/home/user/kaniko-project`, and a Google Container Registry
|
||||
|
|
|
|||
|
|
@ -38,6 +38,6 @@ docker run \
|
|||
-v "$HOME"/.config/gcloud:/root/.config/gcloud \
|
||||
-v "$context":/workspace \
|
||||
gcr.io/kaniko-project/executor:latest \
|
||||
--dockerfile "${dockerfile}" --destination "${destination}" --context "${context}" \
|
||||
--dockerfile "${dockerfile}" --destination "${destination}" --context dir:///workspace/ \
|
||||
--cache="${cache}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue