Replies: 3 comments
-
Just to double check... You want DockerSlim to use buildx when it generated the minified image instead of using the standard docker build API, right? |
Beta Was this translation helpful? Give feedback.
-
That's a great question. Perhaps my problem is in understanding the workflow. Today we use What would be your recommended workflow from there? Remember that we have multi-arch images and I'm guessing docker-slim would have to operate on each one separately. |
Beta Was this translation helpful? Give feedback.
-
@rotty3000 There are a few things here that will be good to go over... First, making sure the output image is in the registry can be done in a couple of ways. The easiest way to do it (which is how I normally do it) is to add a Next, i'd like to mention the relatively new Finally, dealing with the multi-architecture images... The most straight forward way to deal with those is to minify the per-architecture image separately. Push each per-architecture image to your registry. Then create a multi-architecture manifest pointing to those minified per-architecture images. There's a number of ways to do it including the |
Beta Was this translation helpful? Give feedback.
-
Is it possible to combine docker-slim with buildx?
We're working on a developer experience where we package many tools into a docker image which is then dispatched to from a native cli. In order to support Mac M1 we need to build that tools image with buildx. However it would be really nice if we could then also benefit from docker-slim to reduce download sizes.
Beta Was this translation helpful? Give feedback.
All reactions