Nextcloud version (eg, 20.0.5): 20.0.8
(nextcloud:stable-fpm container)
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): nginx-1.19.8
PHP version (eg, 7.4): `n/a``
The issue you are facing:
I try to start a container and give it access to an external hdd. Background: I have a backup of my data on a drive and want to restore it to a new ncp installation in docker. I also want to make backups in that hdd later.
I started the container with:
docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi --mount source=/media/ansi/Backup_4TB,destination=/mnt 192.168.103.44
The host shows the content of the directory, but the container does not:
ansi@ansi-itx:~$ ls /media/ansi/Backup_4TB
iobroker ncp-backups ncp-config_20190607.tar ncp-config_20190614.tar
ansi@ansi-itx:~$ docker exec -it nextcloudpi bash
root@6921e5850765:/# ls /mnt
root@6921e5850765:/#
How do I have to do it correctly?
docker inspect nextcloudpi
[
{
"Id": "6921e5850765e95e071b26f7c247e67adaf04f65c778e4ef38e3943d8c37340a",
"Created": "2021-03-21T09:06:10.906777692Z",
"Path": "/run-parts.sh",
"Args": [
"--mount",
"source=/media/ansi/Backup_4TB,destination=/mnt",
"192.168.103.44"
],
I cannot post any outputs here as nc is not yet initialized.