Skaffold: Squash images using Docker options

Created on 29 Mar 2020  路  1Comment  路  Source: GoogleContainerTools/skaffold

Hi. Docker image build provides an experimental flag --squash to squash new layers of images as mentioned here: https://docs.docker.com/engine/reference/commandline/image_build/

May I know how to pass the option via skaffold during build. Not sure how custom docker flags are to be passed via Skaffold. Thanks.

kinquestion

Most helpful comment

@tvvignesh you can use the buildArgs config in build.docker like mentioned in the docs here
https://skaffold.dev/docs/references/yaml/

Closing this for now. Please feel free to reopen

>All comments

@tvvignesh you can use the buildArgs config in build.docker like mentioned in the docs here
https://skaffold.dev/docs/references/yaml/

Closing this for now. Please feel free to reopen

Was this page helpful?
0 / 5 - 0 ratings