Most of the time, when I install software on my Docker images, I add a rather hairy
RUN command which does something like:
- Install some dependencies for key management.
- Add a GPG key for a new software repository.
- Install software from that new software repository.
- Clean up apt/yum/dnf caches to save a little space.
This is all well and good; and this is the most recommended way to install kubectl in most situations, but it's not without it's drawbacks: