Docker in Linux Containers
Steps:
- Launch Linux Container:
lxc launch ubuntu:16.04 docker
- Install Pre-reqs:
apt update && apt install apt-transport-https ca-certificates gnupg-agent software-properties-common -y
- Add Gpg Public key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- Add Repository:
echo "deb https://download.docker.com/linux/ubuntu/ xenial stable" >> /etc/apt/sources.list.d/docker.list
- Install:
apt update && apt install docker-ce \
docker-ce-cli \
containerd.io -y
Done !!!
No comments:
Post a Comment