Skip to content

Instantly share code, notes, and snippets.

@mindstorms6
Created December 5, 2018 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindstorms6/174796dd1036a55ad27d8f3f6a79b033 to your computer and use it in GitHub Desktop.
Save mindstorms6/174796dd1036a55ad27d8f3f6a79b033 to your computer and use it in GitHub Desktop.
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