cc901109 inksnw Hello, 想請問你有試過嗎? 我後來改用 k8s ctr images convert <pod container id> 再 export 這樣出來的image會是pod container base image 但是我想做的是 把pod內執行中的container包成image
cc901109 inksnw 請問方便再說詳細一點嗎?有點不懂 也附上我的一些資訊 microk8s kubectl get pods -n rdp NAME READY STATUS RESTARTS AGE windows-v1-7b689fdb4b-wlnhs 1/1 Running 0 10s container name: container-windows 謝謝
cc901109 sudo nerdctl –address /var/snap/microk8s/common/run/containerd.sock –namespace k8s.io ps CONTAINER ID a6aaa3470e59 IMAGE docker.io/dockurr/windows NAMES k8s://rdp/windows-v1-7b689fdb4b-wlnhs/container-windows
inksnw cc901109 nerdctl –address /var/snap/microk8s/common/run/containerd.sock –namespace k8s.io commit a6aaa3470e59 docker.io/dockurr/windows:yourtag nerdctl –address /var/snap/microk8s/common/run/containerd.sock –namespace k8s.io images|grep yourtag