Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (37 sloc) 749 Bytes

Demo: containerd

Command line tool ctr

Pull image

$ ctr pull docker.io/library/alpine:3.6

Run image

$ ctr run -t docker.io/library/alpine:3.6 test /bin/sh

Remove container

$ ctr containers rm test

Use docker from getty

$ alias docker=“ctr tasks exec --exec-id docker-$$ docker docker“
$ docker version
$ docker image pull alpine:3.6
$ docker container run -it alpine:3.6 sh

Look at amespaces

$ lsns

Looking at runc

On ubuntu:

$ apt-get -y install runc
$ docker export $(docker container create alpine:3.6) > alpine.tar
$ mkdir -p alpine/rootfs
$ cd alpine
$ tar -C rootfs -xvf ../alpine.tar
$ runc spec
$ runc run alpine
$ sudo runc list