ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

Docker container for ARM64 creating anonymous volumes on each restart

Open Ged296123 opened this issue 4 months ago • 0 comments

Environment

  • ejabberd version: 25.08
  • OS: Linux (Debian)
  • Installed from: ghcr.io/processone/ejabberd:master
  • Hardware: Raspberry Pi 4B

compose.yml

services:
  ejabberd:
    image: ghcr.io/processone/ejabberd:latest
    container_name: ejabberd
    command: live
    network_mode: host
    volumes:
      # Configuration & persistent storage
      - /apps/ejabberd/conf/ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml:ro
      - /apps/ejabberd/database:/opt/ejabberd/database
      - /apps/ejabberd/logs:/opt/ejabberd/logs
      - /apps/ejabberd/upload:/opt/ejabberd/upload
      # Certificates
      - /apps/ejabberd/certificates/mydomain/combined.pem:/opt/ejabberd/certs/mydomain.pem:ro           
    env_file:
      - .env
    user: 9000:9000
    stdin_open: true
    tty: true
    restart: unless-stopped

.env:

TZ=Europe/Istanbul
EJABBERD_BYPASS_WARNINGS=true

Errors from error.log/crash.log

No errors

Bug description

Every time the ejabberd container is brought down (docker compose down) and then brought back up (docker compose up -d) an anonymous volume is created, without removing the previous (anonymous volume). This take up space and creates a clutter of several volumes that i prefer cleaned up.

Brief contents of the anonymous volume as below:

root@pendor:/mnt/dietpi_userdata/docker-data/volumes/288a460daaffcfd0e87f8c7ef64adf735454645a4206d4e590a27e1d99b990d3/_data# ls
total 32K
lrwxrwxrwx 1 root 9000   15 Aug 13 18:15 bin -> /usr/local/bin/
drwxr-xr-x 2 root root 4.0K Aug 29 11:50 certs
drwxr-xr-x 2 9000 9000 4.0K Aug 29 11:50 conf
drwxr-xr-x 2 9000 9000 4.0K Aug 29 11:50 database
drwxr-xr-x 2 9000 9000 4.0K Aug 22 16:17 logs
drwxr-xr-x 2 root root 4.0K Aug 29 11:50 sql
drwxr-xr-x 2 9000 9000 4.0K Aug 22 16:17 upload
drwxr-xr-x 3 9000 9000 4.0K Aug 29 11:50 .ejabberd-modules

If possible id prefer to not have any anonymous volumes at all. But if vital, would it be possible to keep it down to a single volume?

I would appreciate any views and help on this. Will gladly provide more information upon direction. Thanks in advance.

Ged296123 avatar Aug 29 '25 09:08 Ged296123