Title: Install WordPress fail using docker
Last modified: January 28, 2022

---

# Install WordPress fail using docker

 *  [robertqiu](https://wordpress.org/support/users/robertqiu/)
 * (@robertqiu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/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](https://wordpress.org/support/users/robertqiu/)
 * (@robertqiu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/install-wordpress-fail-using-docker/#post-15300369)
 * This is the link I used to install wordpress via docker:
    [https://upcloud.com/community/tutorials/wordpress-with-docker/](https://upcloud.com/community/tutorials/wordpress-with-docker/)
 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/install-wordpress-fail-using-docker/#post-15302982)
 * 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.
 *  [scyto](https://wordpress.org/support/users/scyto/)
 * (@scyto)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/install-wordpress-fail-using-docker/#post-15303944)
 * [@robertqiu](https://wordpress.org/support/users/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.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [scyto](https://wordpress.org/support/users/scyto/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/install-wordpress-fail-using-docker/#post-15303944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
