I use nextcloudpi with docker. And i installed it very well some months ago. But i’ve got a new system, so i had to do it again.
Simply this command:
docker run -d -p 80:80 -p 443:443 -p 4443:4443 --name nextcloudpi -v /mnt/data/:/data ownyourbits/nextcloudpi-armhf myipaddress
and everything will be installed. Please pay attention, that i’ve got my data in /mnt/data.
pi@raspberrypi:~ $ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9e13c75ecf92 ownyourbits/nextcloudpi-armhf “/run-parts.sh 192.1…” 3 days ago Up 2 days 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:4443->4443/tcp nextcloudpi
So far, looks good. But i cant reach the web interface over my ip address (and yeah, also with ipaddress:443 or ipaddress:4443). And i remember, that i have the same problem some months ago, and the problem was an old nextcloudpi docker installation (the docker container seems to use some old folder, or something like that, dont know). And i also knew, that the solution was to delete with a one-line something like an data-folder inside this container, but i can’t remember exactly what it was and what the solution was. To be more clear, i installed before a nextcloudpi docker container, but i forgot to change the data folder to my /mnt/data, so i deleted the container and installed everythings again. The new installation seems to use the old data folder from the old docker container.
Btw, /mnt/data will be mounted as ntfs (this works the last time) and these are the rights:
5 4 drwxrwxrwx 1 root root 4096 Sep 2 18:11 data
pi@raspberrypi:~ $ docker logs -f nextcloudpi
/run-parts.sh: line 47: /etc/services-enabled.d/010lamp: Permission denied
/run-parts.sh: line 47: /etc/services-enabled.d/020nextcloud: Permission denied
Init done
I mean, also when i use
docker exec -it nextcloudpi /bin/bash
and check the /data folder, i’ll get the content of /mnt/data. So i cant find the problem?