I spent two hours today trying to figure out why Nextcloud couldn’t read my data directory. Docker wasn’t mounting my data directory. Moved everything into my data directory. Docker couldn’t even see the configuration file.
Turns out the Docker Snap package only has access to files under the /home
directory.
Moral of the story: never trust a Snap package.
Docker has an apt repo. You can add it to your Debian/Ubuntu and install and update packages normally. No need to use a script install.
https://docs.docker.com/engine/install/ubuntu/
That’s essentially what the script does, then installs all the deps and docker, sets up the service.
Is there a difference between the apt and the install script version?
all depends on what your aptitude is configured to look for.