Skip to content

Instantly share code, notes, and snippets.

@dallen66
Last active August 29, 2018 21:36
Show Gist options
  • Select an option

  • Save dallen66/9c68e317400241d7d396202316d00613 to your computer and use it in GitHub Desktop.

Select an option

Save dallen66/9c68e317400241d7d396202316d00613 to your computer and use it in GitHub Desktop.
#! /bin/bash
sudo mkdir -p /opt/bin
sudo wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
sudo wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512
sudo sha512sum -c runsc.sha512
sudo chmod +x runsc
sudo mv runsc /opt/bin
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo tee /etc/systemd/system/docker.service.d/override.conf <<- EOF
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --host=fd:// --default-runtime=runsc --add-runtime=runsc=/opt/bin/runsc
EOF
sudo systemctl enable docker
sudo systemctl daemon-reload
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment