[Issue] image mod without modification output differ from image export with python:2.7-slim-buster
qiuchengxuan opened this issue · comments
qiuchengxuan commented
Current Behavior
-
Export image with
image mod
regctl image mod python:2.7-slim-buster --annotation 'io.containerd.image.name="docker.io/library/python:2.7-slim-buster"' --create ocidir://python:2.7-slim-buster tar cf python.tar -C python ./
-
import with ctr
[root@whatever ~]# ctr -n k8s.io images import python.tar unpacking import-2024-05-29:2.7-slim-buster (sha256:039808cc0b7b562b05a0f13e75c3693be4325c3289d29b304eb40932339108f5)...done [root@whatever ~]# crictl images | grep import docker.io/library/import-2024-05-29 2.7-slim-buster eeb27ee6b8930 51.7MB
Expected Behavior
-
Export image with
image export
regctl image export python:2.7-slim-buster python.tar
-
import image with ctr
[root@whatever ~]# ctr -n k8s.io images import python.tar unpacking docker.io/library/python:2.7-slim-buster (sha256:6c1ffdff499e29ea663e6e67c9b6b9a3b401d554d2c9f061f9a45344e3992363)...done
-
grep with pattern
import
, no outputs as expected[root@whatever ~]# crictl image | grep import [root@whatever ~]#
Steps To Reproduce
image mod
from python:2.7-slim-buster
Version
VCSTag: v0.6.1
VCSRef: 766ee6291f882778207ff42207f9ca8b1da54e57
VCSCommit: 766ee6291f882778207ff42207f9ca8b1da54e57
VCSState: clean
VCSDate: 2024-05-14T13:18:19Z
Platform: linux/amd64
GoVer: go1.22.3
GoCompiler: gc
Environment
- Running as binary or container: binary
- Host platform: linux/amd64
- Registry description: docker.io
Anything else
Probably I need export it first and modify locally