Skip to content

Instantly share code, notes, and snippets.

@mindstorms6
Created Dec 5, 2018
Embed
What would you like to do?
ChromeOS Docker

fix docker in chromeos: First up, make containerd start correctly:

sudo vim /lib/systemd/system/containerd.service

Comment out:

ExecStartPre=/sbin/modprobe overlay

Re-compile runc (path has made it upstream, but isn't released yet):

sudo apt-get install golang libseccomp-dev
go get github.com/opencontainers/runc
export GOPATH=~/go
cd ~/go/src/github.com/opencontainers/runc/
make
sudo cp runc /usr/local/bin/runc-chromeos

Tell docker to use new runc:

sudo vim /etc/docker/docker.json

{
    "runtimes:" {
        "runc-chromeos" {
            "path" : "/usr/local/bin/runc-chromeos"
        }
    }
    "default-runtime":"runc-chromeos"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment