-
-
Save dallen66/9c68e317400241d7d396202316d00613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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