# Install a specific runc version
$ go get -u github.com/opencontainers/runc
$ cd $GOPATH/src/github.com/opencontainers/runc
$ git reset --hard 429a5387123625040bacfbb60d96b1cbd02293ab
$ make && make install
# Install containerd HEAD
$ go get -u github.com/containerd/containerd
$cd $GOPATH/src/github.com/containerd/containerd
$make && make install
# Use the Clear Containers 3.0 runtime
$ cat /etc/containerd/config.toml
state = "/run/containerd"
root = "/var/lib/containerd"
snapshotter = "overlay"
subreaper = false
oom_score = 0
[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 0
[debug]
address = "/run/containerd/debug.sock"
level = "debug"
[metrics]
address = ""
[plugins.linux]
shim = "/usr/local/bin/containerd-shim"
runtime = "/usr/bin/cc-runtime"
# Start containerd
$ containerd -c /etc/containerd/config.toml
# Fetch a busybox image
$ dist fetch pull docker.io/library/busybox:latest
# Run ls
$ ctr run -rm docker.io/library/busybox:latest foobar ls
Last active
July 3, 2017 16:15
-
-
Save sameo/fa32cfe4f7a74d9eea74982bb1f0100d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment