I'm trying to install the nfs-common
package via apt-get
on a Kubernetes node. To achieve this I created a privileged pod and then accessed it with this command: kubectl exec -ti privileged-pod sh
Once I'm inside the container shell I execute this command to access the node:
chroot /host/
Here is where I should be able to use the following: apt-get install -y nfs-common
But I get the following error:
/bin/sh: apt-get: not found
I tried to download apt
with wget
, but dpkg
is not available either:
/bin/sh: dpkg: not found
How could I install the package?
Docker for Mac version: v19.03.8
Kubernetes version: v1.15.5
Kubernetes Node OS: Linux 4.19.76-linuxkit x86_64
Using docker-desktop node
cat /etc/*release
, that should indicate which user space flavor you are running. You may have another package manager installed such asyum
ordnf
.