Hi, I#ve got a strange effect on my Raspberry Pi Docker installation.
OS: Linux rpi 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
Docker:
Client: Docker Engine - Community
Version: 27.5.1
API version: 1.47
Go version: go1.22.11
Git commit: 9f9e405
Built: Wed Jan 22 13:41:25 2025
OS/Arch: linux/arm64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.5.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.11
Git commit: 4c9b3b0
Built: Wed Jan 22 13:41:25 2025
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.25
GitCommit: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
runc:
Version: 1.2.4
GitCommit: v1.2.4-0-g6c52b3f
docker-init:
Version: 0.19.0
GitCommit: de40ad0
I have Piwigo installed along with MariaDB
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0622f66cde2 lscr.io/linuxserver/piwigo:latest "/init" 13 hours ago Up 13 hours 443/tcp, 0.0.0.0:8080->80/tcp, [::]:8080->80/tcp piwigo
e927a707bf06 adminer "entrypoint.sh php -…" 13 hours ago Up 13 hours 0.0.0.0:33066->8080/tcp, [::]:33066->8080/tcp piwigo-adminer-1
af419798bcb0 linuxserver/mariadb "/init" 13 hours ago Up 13 hours 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp mariadb
It works fine with the following compose.yml
services:
mariadb:
image: linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=xyz
- TZ=Europe/Berlin
volumes:
- /opt/dev/docker/mariadb/config:/config
ports:
- 3306:3306
restart: unless-stopped
piwigo:
image: lscr.io/linuxserver/piwigo:latest
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
volumes:
- /opt/dev/docker/piwigo/config:/config
- /opt/piwigo/gallery:/gallery
ports:
- 8080:80
restart: unless-stopped
adminer:
image: adminer
restart: always
ports:
- 33066:8080
BUT strange thing is: When I reboot the Raspberry and do a docker compose up -d, it doesn’t announce the network as being started:
pi@rpi:/opt/dev/docker/piwigo $ docker compose up -d
[+] Running 3/3
✔ Container piwigo Running
✔ Container mariadb Running
✔ Container piwigo-adminer-1 Running
pi@rpi:/opt/dev/docker/piwigo $
..and from my LAN, the call of piwigo rpi:8080 is being redirected to http://rpi:8080/install.php
docker network list shows the piwigo_default network and inspect shows it too. Looks good. The problem can be solved by doing a docker compose down. Then it announces the network as going down!
pi@rpi:/opt/dev/docker/piwigo $ docker compose down
[+] Running 4/4
✔ Container piwigo Removed
✔ Container mariadb Removed
✔ Container piwigo-adminer-1 Removed
✔ Network piwigo_default Removed
pi@rpi:/opt/dev/docker/piwigo $
And now, with the second docker compose up -d, the network is announced and piwigo is accesible from LAN.
pi@rpi:/opt/dev/docker/piwigo $ docker compose up -d
[+] Running 4/4
✔ Network piwigo_default Created
✔ Container piwigo-adminer-1 Started
✔ Container piwigo Started
✔ Container mariadb Started
pi@rpi:/opt/dev/docker/piwigo $
This is exactly reproducable. I tried putting the network explicitly in the compose.yml with no effect. I still need to start compose twice to have the installation being accesible from LAN.
Any idea how to solve that issue?
Thank you, fm