You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@ubu1804vm:~# ctr container create docker.io/library/redis:latest redis
root@ubu1804vm:~# ctr c ls
CONTAINER IMAGE RUNTIME
alpine docker.io/library/alpine:latest io.containerd.runc.v2
redis docker.io/library/redis:latest io.containerd.runc.v2
make a dir for the rootfs mount and then ask containerd for the mount command
root@ubu1804vm:~# mkdir redis-rootfs
root@ubu1804vm:~# ctr snapshot mounts ~/redis-rootfs/ redis | sh
root@ubu1804vm:~# cd redis-rootfs/
root@ubu1804vm:~/redis-rootfs# ls
bin boot data dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
root@ubu1804vm:~/redis-rootfs#
see info about the mount including all the overlay options
root@ubu1804vm:~/redis-rootfs# mount | grep redis
overlay on /home/estesp/redis-rootfs type overlay (rw,relatime,lowerdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/115/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/114/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/113/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/112/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/111/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/110/fs,upperdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/116/fs,workdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/116/work)
unmount
root@ubu1804vm:~/redis-rootfs# cd ..
root@ubu1804vm:~# umount redis-rootfs
root@ubu1804vm:~#