From 452f452dbecb216a819de0eac2186b96504bdd4a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 13 Apr 2021 19:41:04 -0700 Subject: pull a container into a namespace Pull an image provided as an argument to the program. We're only interested in images for Linux/amd64 at the moment. We setup a default namespace for containerd named `c2vm`. Images that will be pulled by containerd will be stored inside that namespace. Once the program is build it can be run like this: ``` ; sudo ./c2vm -container docker.io/library/redis:latest pulled docker.io/library/redis:latest (38667897 bytes) ``` And the image is indeed in the namespace: ``` ; sudo ctr -n c2vm images ls -q docker.io/library/redis:latest ``` --- users/fcuny/exp/containerd-to-vm/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 users/fcuny/exp/containerd-to-vm/.gitignore (limited to 'users/fcuny/exp/containerd-to-vm/.gitignore') diff --git a/users/fcuny/exp/containerd-to-vm/.gitignore b/users/fcuny/exp/containerd-to-vm/.gitignore new file mode 100644 index 0000000..8a23cf9 --- /dev/null +++ b/users/fcuny/exp/containerd-to-vm/.gitignore @@ -0,0 +1 @@ +/cmd/c2vm/c2vm -- cgit v1.2.3