From d828fed74bfe965fc95d5e813f8cfad58d06b287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Fri, 30 Sep 2022 23:23:09 +0100 Subject: [PATCH] add documentation for docker --- documentation/running-docker.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 documentation/running-docker.md diff --git a/documentation/running-docker.md b/documentation/running-docker.md new file mode 100644 index 0000000..955e122 --- /dev/null +++ b/documentation/running-docker.md @@ -0,0 +1,23 @@ +# Running Docker + +on a lxc container + +## setup lxc container for docker + +### Config: +- security.nesting: "true" + + +```bash +lxc config edit ${CONTAINER_NAME} +``` + +### setup ubuntu container + +```bash +apt-get install --yes fuse-overlayfs +cd ~/ +curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh +docker run hello-world +docker info +```