Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run in Docker documentation lacks context #828

Closed
codevbus opened this issue Oct 22, 2019 · 1 comment · Fixed by #829
Closed

Run in Docker documentation lacks context #828

codevbus opened this issue Oct 22, 2019 · 1 comment · Fixed by #829
Labels
area/documentation For all bugs related to documentation

Comments

@codevbus
Copy link
Contributor

Actual behavior
The documentation for running Kaniko in a Docker container via run_in_docker.sh lacks appropriate context. The script does not appear to function correctly if a remote build context is specified, or if a Dockerfile is referenced outside the container filesystem:

~/go/src/github.com/GoogleContainerTools/kaniko/run_in_docker.sh /Users/mike/projects/kaniko/Dockerfile gs://gc-bucket/context.tar.gz gcr.io/project-id/nginx-alpine

docker: Error response from daemon: invalid mode: /workspace.

Expected behavior
As described in the documentation, this should be a valid command string:

./run_in_docker.sh <path to Dockerfile> <path to build context> <destination of final image>

To Reproduce
Steps to reproduce the behavior:

  1. Run run_in_docker.sh using a local Dockerfile and remote build context.

Additional Information

  • Dockerfile
FROM nginx:alpine
WORKDIR /root/
COPY www /usr/share/nginx/html
  • Build Context
COPY www /usr/share/nginx/html
  • Kaniko Image (fully qualified with digest)
    latest

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@codevbus
Copy link
Contributor Author

PR in #829

@cvgw cvgw added the area/documentation For all bugs related to documentation label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation For all bugs related to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants