Running docker within lxd with overlay2 backend

This is a sketch, to be edited...
ayourtch@ayourtch-x280:~$ lxc profile show nesting
config:
  security.nesting: "true"
  security.privileged: "true"
  security.syscalls.intercept.mknod: "true"
  security.syscalls.intercept.setxattr: "true"
description: ""
devices: {}
name: nesting
used_by:
- /1.0/instances/docker-test
- /1.0/instances/vpp-relops
This profile should be applied to the lxd container running docker Then inside the container install
sudo apt-get install fuse-overlayfs
Then the standard docker installation as per https://docs.docker.com/engine/install/ubuntu/ ; then change the driver to overlay2 as per https://docs.docker.com/storage/storagedriver/overlayfs-driver/ - which is:
1. sudo systemctl stop docker

2. cp -au /var/lib/docker /var/lib/docker.bk

3. edit /etc/docker/daemon.json to be:

{
  "storage-driver": "overlay2"
}


4. sudo systemctl start docker
Index of /blog/2022-03-31-Running-docker-within-lxd-with-overlay2-backend/

Index of /blog/2022-03-31-Running-docker-within-lxd-with-overlay2-backend/


../
HEADER.txt                                         01-Jul-2024 21:41                 990