the k3s docker image is distroless; it does not come from any Linux distribution and does not have a package manager. It is just the K3s binaries and a few other busybox utilities, all statically linked. If you could get a statically linked version of the binaries you need, you could
docker cp
them into the image, or build a derivative image with them installed.
👍 1
r
rough-farmer-49135
10/27/2023, 7:14 PM
If you search around on GPU support with K3D they tend to include copying the K3S binaries from their container into a Ubuntu base image, so the Dockerfile example from that (from the K3D faq) should give you enough info to do the same to a base container of your choice.