Skip to content

Instantly share code, notes, and snippets.

@krsna1729
Created January 18, 2019 21:37
Show Gist options
  • Save krsna1729/143487534f2e55ca437ab7e8be27c4f5 to your computer and use it in GitHub Desktop.
Save krsna1729/143487534f2e55ca437ab7e8be27c4f5 to your computer and use it in GitHub Desktop.
Using kaniko instead of Docker to build images
docker run \
-v $(pwd):/mycode \
-v $HOME/.docker/config.json:/kaniko/config.json \
--env DOCKER_CONFIG=/kaniko \
gcr.io/kaniko-project/executor:latest \
--dockerfile=Dockerfile \
--context=/mycode \
-d index.docker.io/myrepo/myimage:mytag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment