-
|
/var/lib/docker has moved to /mnt/deitpi_userdata/docker_data, presumably to move userdata off root file system. I guess that dietpi_software needs to be hacked appropriately too. [time passes ...] moving /var/lib/containerd and updating config.toml worked Looking at dietpi-software it already does config injection on config.toml for a different reason, so no reason why it should not do the relocation at installation like it does the /var/lib/docker relocation. Currently not sure what happens when I relocate dietpi_userdata and I have already moved /var/lib/containerd to userdata. dietpi-drive_manager does a dietpi-services stop which stops docker, but not containerd, so needs to know the dependency if moving containerd to userdata. I'll need to manually stop dietpi-servers and then systemctl stop containerd. Would have been simpler if waited to relocated containerd until after I had relocated userdata. Also seems like dietpi-software doesn't handle relocated userdata, as lots of hardcoded /mnt/dietpi-userdata paths. Checking sizes shows containerd has the bulk of the userdata for me, which I want out of root, but then I use bind mounts for the majority of my docker volumes for my data to allow easier backups. Maybe dietpi-services needs to know the docker is dependent on containerd and they should be stop/started in sync. Could probably do something in systemd, but maybe too complicated, and just have dietpi-services know and handle the dependency would be better. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Docker now uses
Hardcoded AFAIK |
Beta Was this translation helpful? Give feedback.
I checked it a bit, and volumes are still stored at the Docker data dir below
/mnt/dietpi_userdata/docker-data/volumes/. Images are indeed stored by the containerd snapshotter, and then mounted (not actually stored) below/mnt/dietpi_userdata/docker-data/rootfswhile the container is running.Usually, the images can be restored as easily as a
docker pullordocker run. Variable data is (supposed to be) stored in volumes or bind mounts, which can be moved over to new container images. Otherwise, when updating a container image, which means deleting the old image, would remove all variable data.So what I said above, as far as I can see, remains true: Moving containerd data to
/mnt/dietpi_u…