Created
January 18, 2019 21:37
-
-
Save krsna1729/143487534f2e55ca437ab7e8be27c4f5 to your computer and use it in GitHub Desktop.
Using kaniko instead of Docker to build images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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