Skip to content

Instantly share code, notes, and snippets.

@agrrh
Last active November 3, 2018 21:29
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 agrrh/f9a55ef5c2aed4178ca6a9f7b542f282 to your computer and use it in GitHub Desktop.
Save agrrh/f9a55ef5c2aed4178ca6a9f7b542f282 to your computer and use it in GitHub Desktop.
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