`gzip not found` when backing up a mysql server
To Reproduce
Use the following compose file and run a manual backup to S3.
services:
db:
image: mysql/mysql-server:8.0
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
volumes:
- yaffa_db:/var/lib/mysql
restart: unless-stopped
networks:
- yaffa-network
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"${DB_USERNAME}",
"-p${DB_PASSWORD}",
]
interval: 30s
timeout: 10s
retries: 3
volumes:
yaffa_db:
networks:
yaffa-network:
driver: bridge
From the template of https://github.com/kantorge/yaffa
Current vs. Expected behavior
Current:
Initializing backup
[Sat Jun 6 00:00:00 UTC 2026] Starting backup process...
[Sat Jun 6 00:00:00 UTC 2026] Executing backup command...
[Sat Jun 6 00:00:00 UTC 2026] Container Up: db2e5503ff31
[Sat Jun 6 00:00:00 UTC 2026] ❌ Error: Backup failed
Error: bash: gzip: command not found
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: Got errno 11 on write
Provide environment information
OS: Arch Linux x86_64
Kernel: Linux 7.0.11-1-cachyos-bore
Dokploy: v0.29.7
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
This is a confirmed limitation in how Dokploy handles MySQL backups. The backup command runs mysqldump | gzip inside the container via docker exec [1], so gzip must be available in the container image. The mysql/mysql-server:8.0 image is minimal and doesn't include gzip.
Workaround: You can install gzip in the container by adding a custom entrypoint or switching to the official mysql:8.0 image (which includes gzip).
For example, switching to mysql:8.0:
db:
image: mysql:8.0
# ... rest of your config
Alternatively, if you must use mysql/mysql-server:8.0, you could extend it with a Dockerfile:
FROM mysql/mysql-server:8.0
RUN microdnf install -y gzip && microdnf clean all
A more robust fix on the Dokploy side would be to handle compression on the host rather than inside the container, or to check for gzip availability before attempting the backup.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
I see this was resolved changing the docker image to the official, let me know if something else can be change from dokploy side, for now i will close