I opened a pod. There is a container in the pod. I installed the third-party package of Python in the container. Then I want to package the operated container as an image. Is there any way?
Cluster information:
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:53:14Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Installation method:
kubeadm init $@ --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=NumCPU --kubernetes-version=v1.21.2
kubeadm join $@ --discovery-token-unsafe-skip-ca-verification
Host OS:
Linux k8s-master 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
pod info:
jupyterhub-k8s jupyter-qwe 0/1 Completed 0 42m
kube-system calico-kube-controllers-7f6768fdfb-9dns6 1/1 Running 1 13d
kube-system calico-node-2mvlb 1/1 Running 1 12d
kube-system calico-node-mxvz9 1/1 Running 1 13d
kube-system coredns-558bd4d5db-tct5q 1/1 Running 1 13d
kube-system coredns-558bd4d5db-tmqww 1/1 Running 1 13d
kube-system etcd-k8s-master 1/1 Running 2 13d
kube-system kube-apiserver-k8s-master 1/1 Running 1 13d
kube-system kube-controller-manager-k8s-master 1/1 Running 1 13d
kube-system kube-proxy-dhdh6 1/1 Running 0 2d1h
kube-system kube-proxy-m7dgl 1/1 Running 0 2d1h
kube-system kube-scheduler-k8s-master 1/1 Running 1 13d
merit-cloud auth-server-86c5d7f994-cgn5q 1/1 Running 0 10h