Last active
November 3, 2018 21:29
-
-
Save agrrh/f9a55ef5c2aed4178ca6a9f7b542f282 to your computer and use it in GitHub Desktop.
Install Docker CE with Kata on Ubuntu
This file contains 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 | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository | |
apt-get remove -y \ | |
docker \ | |
docker-engine \ | |
docker.io | |
apt-get update && apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update && apt-get install -y \ | |
docker-ce |
This file contains 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 | |
ARCH=$(arch) | |
echo "deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/ /" > /etc/apt/sources.list.d/kata-containers.list | |
curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | apt-key add - | |
apt-get update | |
apt-get -y install kata-runtime kata-proxy kata-shim | |
# vim /lib/systemd/system/docker.service | |
# ... --add-runtime kata-runtime=/usr/bin/kata-runtime ... | |
# systemctl daemon-reload | |
# systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment