Support » Installing WordPress » Install WordPress fail using docker

  • Hi There,
    I am installing wordpress on my virtual machine using docker.

    I can create and run my MariaDB successfully.

    
    docker run -e MYSQL_ROOT_PASSWORD=<password> -e MYSQL_DATABASE=wordpress --name wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest
    

    The problem is that I can NOT start the wordpress container and make it connect to database. The command is here:

    
    docker run -e MYSQL_ROOT_PASSWORD=<password> -e MYSQL_DATABASE=wordpress --name wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest
    

    The error is :

    
    [root@VM-0-2-centos ~]# docker logs wordpress
    [Fri Jan 28 01:56:52.913199 2022] [:crit] [pid 1] (38)Function not implemented: AH00141: Could not initialize random number generator
    

    BTW, the system I use is :

    
    [root@VM-0-2-centos ~]# uname -srm
    Linux 3.10.107-1-tlinux2_kvm_guest-0056 x86_64
    
    [root@VM-0-2-centos ~]# cat /proc/version
    Linux version 3.10.107-1-tlinux2_kvm_guest-0056 (root@VM_197_173_centos) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed Dec 29 14:35:09 CST 2021
    

    Best,
    Robert Qiu

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter robertqiu

    (@robertqiu)

    This is the link I used to install wordpress via docker:
    https://upcloud.com/community/tutorials/wordpress-with-docker/

    Dion

    (@diondesigns)

    This isn’t a WordPress issue. Perhaps your hosting company can provide assistance. Otherwise, I suggest asking your question on StackOverflow or perhaps on the Docker community Slack channel.

    @robertqiu the dirty secret about docker is images are not truly portable because the containers require the host kernel for many functions.

    Try running the container on a debian host rather than a centos host.
    Also try making sure that the random generator module is installed on the centos host.

    There are many other examples like this (for example containers not working on pi because pios host has outdated crypto libraries). etc

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Install WordPress fail using docker’ is closed to new replies.