Bind source path does not exist ... Even if it exists

Hello community,

I am facing a problemi trying to instantiate Nextcloud on my local machine. In the following there is the setup description:

  • Host OS: Ubuntu
  • Docker image: Nextcloud: 26.0.2
  • Docker management software: Portainer
  • binded folders:
    + /var/www/html/config
    + /var/www/html/data
    + /var/www/html/custom_apps
    + /var/www/html/themes
    + /var/www/html/
  • Network: bridge
  • Instantiation via Portainer Service

When launching the container the error message I receive back is: “invalid mount config for type “bind”: bind source path does not exist: /var/www/html/config”, but the mount path on the host machine actually exists.

In the following there are the folder permissions:

drwxr-xr-x 2 www-data www-data 4096 giu 3 00:41 Apps
drwxr-xr-x 2 www-data www-data 4096 giu 3 11:11 Config
drwxr-xr-x 2 www-data www-data 4096 giu 3 11:11 Data
drwxrwxrwx 2 www-data www-data 4096 giu 3 11:11 Theme
drwxr-xr-x 2 root root 4096 giu 3 00:41 Themes
drwxr-xr-x 2 www-data www-data 4096 giu 3 11:11 WWW

The external db associated with the instantiation is MariaDB, but seems like the problem does not involve it.

I tried several solutions for like one week but I really can’t get through it. Can someone please help me?

PS: hope this is the right section.

1 Like

You have capital letters in your folder paths. *nix is case sensitive. :slight_smile:

1 Like

Thank you very much for your reply!

Even changing the intial letters from capital to lower-case, nothing changes.

Here the output from portainer. Seems like the folder inside of the container itself does not exist… Which is strange, seems Docker is supposed to create it (I think!).