diff --git a/README.md b/README.md index ec2a6de46..21d6e17f5 100644 --- a/README.md +++ b/README.md @@ -255,8 +255,8 @@ We can run the kaniko executor image locally in a Docker daemon to build and pus ./run_in_docker.sh ``` -**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 diff --git a/run_in_docker.sh b/run_in_docker.sh index 36496768e..ba95243bd 100755 --- a/run_in_docker.sh +++ b/run_in_docker.sh @@ -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}"