Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Docker CE with Kata on Ubuntu
#!/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
#!/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