Docker Container Installation
1 2 3 4 |
lxc init ubuntu:16.04 docker lxc exec docker bash lxc exec docker -- apt update lxc exec docker -- apt dist-upgrade -y |
In manchen Fällen gab es Probleme innerhalb des Containers bei start von Docker-Compose. Hier half es den Container privileged zu setzten
1 |
lxc config set docker security.privileged true |
Es ist jedoch nicht empfehlenswert. Weitere Tests nötig.
Docker in einem LXC Container.
1 2 3 4 5 6 7 |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" apt update apt-cache policy docker-ce apt install -y docker-ce systemctl status docker docker info |
Compose
1 2 3 4 5 6 7 8 9 |
root@crucial-bluebird:~# curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 617 0 617 0 0 597 0 --:--:-- 0:00:01 --:--:-- 597 100 8648k 100 8648k 0 0 860k 0 0:00:10 0:00:10 --:--:-- 1127k root@crucial-bluebird:~# chmod +x /usr/local/bin/docker-compose root@crucial-bluebird:~# docker-compose --version docker-compose version 1.16.1, build 6d1ac21 root@crucial-bluebird:~# |