Moving docker containers crashes apps



  • I used this instructions on cloudron docs. Apps not working after starting docker or rebooting machine.docker ps has no container running.

    Moving docker images to another location
    Cloudron uses Docker for containerizing applications and docker images tend to consume a lot >of space. The docker images are stored by default at /var/lib/docker. They can be moved to an >external storage as follows:

    Stop docker
    systemctl stop docker

    Move existing contents to external storage. Any external storage must be formatted as ext4. >Assuming, /mnt/docker is the new location:
    rsync -aHSX /var/lib/docker /mnt/docker

    Link /var/lib/docker to the new location
    rm -rf /var/lib/docker
    ln -s /mnt/docker /var/lib/docker

    Alternately, you can bind mount mount --bind /mnt/docker /var/lib/docker. This, however, >requires adding an entry in /etc/fstab to persist across reboots.

    Start docker
    systemctl start docker

    I get this error on docker log :

    rd process" pid=1564
    489c9c1b21a6d78b5c538cd395416ec50f88 version=v1.0.3
    " module=containerd type=io.containerd.content.v1
    .." module=containerd type=io.containerd.snapshotter.v1
    1.btrfs" error="path /mnt/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
    fs"..." module=containerd type=io.containerd.snapshotter.v1
    module=containerd type=io.containerd.metadata.v1
    n" error="path /mnt/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt"
     module=containerd type=io.containerd.differ.v1
    odule=containerd type=io.containerd.gc.v1
    " module=containerd type=io.containerd.grpc.v1
    odule=containerd type=io.containerd.grpc.v1
    le=containerd type=io.containerd.grpc.v1
    dule=containerd type=io.containerd.grpc.v1
    ." module=containerd type=io.containerd.grpc.v1
    dule=containerd type=io.containerd.grpc.v1
    dule=containerd type=io.containerd.grpc.v1
    " module=containerd type=io.containerd.grpc.v1
     module=containerd type=io.containerd.grpc.v1
    " module=containerd type=io.containerd.monitor.v1
    module=containerd type=io.containerd.runtime.v1
    ule=containerd type=io.containerd.grpc.v1
    odule=containerd type=io.containerd.grpc.v1
    ..." module=containerd type=io.containerd.grpc.v1
    -containerd-debug.sock" module="containerd/debug"
    -containerd.sock" module="containerd/grpc"
    containerd
    took 0.00 seconds"
    period"
    runtime"
    


  • I haven't seen this error before. If you have backups of all the apps, you could try to start with an empty/var/lib/docker folder and restore all apps from the Cloudron dashboard, this would hopefully refetch all images and rebuild the app containers as well.

    Also which Cloudron version are you using and just to be sure that docker was not somehow updated by the system automatically, which docker version is this?