Docker volume not transferable


I have a docker volume on an external USB that contains my ncdata directory, created using nextcloudpi-armhf on a RPI3+ using DietPI.

I have installed docker on my Rock64 and while I can get Nextcloudpi to run and can activate if I try to mount the original ncdata on the HDD by launching a new docker instance with the data path set as follows


the container fails as follows.

sudo docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /mnt/6ffe8608-c88d-433f-96c5-d0611bf517e2/ncdata:/data --restart unless-stopped --name nextcloudpi ownyourbits/nextcloudpi-armhf
ian@DietPi:/mnt/6ffe8608-c88d-433f-96c5-d0611bf517e2$ sudo docker logs -f nextcloudpi
Making /etc/shadow persistent ...
Starting PHP-fpm
Starting Apache
AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/ncp.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/' does not exist or is empty
Action 'start' failed.
The Apache error log may have more information.
Provisioning Redis password
Updating NextCloud config with Redis password
Provisioning MariaDB password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")
Updating NextCloud config with MariaDB password
PHP threads set to 4
Starting Redis
Starting Cron
Starting Postfix
Could not open input file: /var/www/nextcloud/occ
Init done

The problems seem to be that the drive does not contain /etc/letsencrypt.

Can I move the volume between machines?

let’s continue this in github