How can I mount multiple external storage local drives?

Hi! Last time I mounted 2 local fodlers to my nextcloud aio with this command:

sudo docker run
–init
–sig-proxy=false
–name nextcloud-aio-mastercontainer
–restart always
–publish 8080:8080
–env APACHE_PORT=11000
–env APACHE_IP_BINDING=0.0.0.0
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
–env NEXTCLOUD_MOUNT=“/mnt/remote”
–env NEXTCLOUD_MOUNT=“/home/ubuntu/nextcloud”
–volume /var/run/docker.sock:/var/run/docker.sock:ro
nextcloud/all-in-one:latest

The problem is that only 1 of the mounted folder is working on the nextcloud external storage page. The other one is shown with the red !. Is there a way to mount multiple local folders to the nextcloud aio external storage?

How can I mount multiple external storage local drives?

You could use a bind mount on the host to make /home/ubuntu/nextcloud available in /mnt/nextcloud for example and then use --env NEXTCLOUD_MOUNT="/mnt/". Then both directories should be available inside the container. One in /mnt/remote, the other in /mnt/nextcloud.

This topic was automatically closed after 90 days. New replies are no longer allowed.