summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2021-04-13 19:41:04 -0700
committerFranck Cuny <franck.cuny@gmail.com>2021-04-13 19:41:04 -0700
commitcfdef4995afd80962dede1a7bf8b4431b3a2c7d0 (patch)
tree9b671b7aa0671f32ec40b27dfd9d91d5bcb75933 /.gitignore
parentdoc: update README (diff)
downloadcontainerd-to-vm-cfdef4995afd80962dede1a7bf8b4431b3a2c7d0.tar.gz
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
```
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8a23cf9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cmd/c2vm/c2vm