Need help to minify Ubuntu image #544
Replies: 2 comments 2 replies
-
Sounds like you have a generic image, which means you need to do extra work to optimize it. It's a lot easier when you have an application container image. When you have a generic image you don't know what it will need to do and it means you need to be more explicit about keeping/including the image components. Sounds like you want to use 'gcc' and 'make' in your image and you'll need all of their dependencies. I'd recommend starting with a more simple image. There are several possible way to approach optimizing your image. For example, it'll be good to invoke gcc to compile something (a file you'd volume mount) when you run the |
Beta Was this translation helpful? Give feedback.
-
What should be mentioned as value --include-bin value? |
Beta Was this translation helpful? Give feedback.
-
Currently I'm trying to optimize ubuntu image which ubuntu as base image and gcc compiler and make installation setup on it.
When i try to minimize that image.
The slimmed completely erase the root directories inside the image.And the slimmed image becomes unusable.
I have gone through docs and found out exclude property for slimming image.
But dont know how to use it.
Can someone help me to optimize ubuntu image.
Thanks in advance 🙂.
Beta Was this translation helpful? Give feedback.
All reactions