Skip to content

Docker container doesn't start in stock configuration #1004

Description

@csmcolo

Hello,

I am using the docker compose file from https://hub.docker.com/_/wordpress with the only change being the external port and the image won't start. Everything pulls but it errors out with:

wordpress-1  | [16-Jul-2026 15:39:36 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/imagick (/usr/local/lib/php/extensions/no-debug-non-zts-20230831/imagick: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20230831/imagick.so (/lib/x86_64-linux-gnu/libfftw3.so.3: invalid ELF header)) in Unknown on line 0
wordpress-1 exited with code 139 (restarting)

Not quite sure where to go here as its the provided compose file and the latest image. My system details below in case they matter but to me it looks like something in the image is missing (imagick).

System:

6.12.94+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.94-1 (2026-06-20) x86_64 GNU/Linux
Docker version 29.6.0, build fb59821
Docker Compose version v5.2.0

The compose file:

services:

  wordpress:
    image: wordpress
    restart: always
    hostname: wordpress.example.com
    ports:
      - 5400:80
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: exampleuser
      WORDPRESS_DB_PASSWORD: examplepass
      WORDPRESS_DB_NAME: exampledb
    volumes:
      - wordpress:/var/www/html

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_DATABASE: exampledb
      MYSQL_USER: exampleuser
      MYSQL_PASSWORD: examplepass
      MYSQL_RANDOM_ROOT_PASSWORD: '1'
    volumes:
      - db:/var/lib/mysql

volumes:
  wordpress:
  db:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions