Jetzt fange ich klein an
https://hub.docker.com/_/nextcloud
Using the apache image
The apache image contains a webserver and exposes port 80. To start the container type:
$ docker run -d -p 8080:80 nextcloud
Now you can access Nextcloud at http://localhost:8080/ from your host system.
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nextcloud latest 46ca0e38ef08 2 weeks ago 917MB
hello-world latest 18e5af790473 4 months ago 9.14kB
Gehe ich jetzt auf http:/IP-Adresse-vom-VPS:8080/ passiert leider nicht, nicht erreichbar.
Wie prüfe ich jetzt, wo der Fehler liegen kann?
Erst mal den Nextcloud Docker Container starten, alles wieder vergessen, darin bin ich gut.
docker run nextcloud
Initializing nextcloud 23.0.1.2 ...
Initializing finished
New nextcloud instance
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Fri Feb 18 18:44:52.399869 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.52 (Debian) PHP/8.0.15 configured -- resuming normal operations
[Fri Feb 18 18:44:52.399930 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
Doch nicht so einfach, ich muss Docker üben.
Oder wie komme ich weiter?
Erst mal das anschauen (evtl. andere Browser testen):
https://technology.amis.nl/oracle-cloud/run-always-free-docker-container-on-oracle-cloud-infrastructure/