Configuring GD and Freetype on WordPress Docker Image

This applies to official WordPress image but can be used with PHP image also. Create Dockerfile with following contents: FROM wordpress:latest # Install gd and freetype RUN apt-get -y update \ && apt-get -y install php5-gd freetype* \ && docker-php-ext-configure gd –with-freetype-dir=/usr/include/ –with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd Build your image docker build -t wordpress . Or you can use my image here.

Using WordPress and MySQL Docker Containers

I am just starting out on Docker and so far it’s been fun. Here I am going to show how I used Docker WordPress and MySQL containers. Before I delve into the details, I want to tell you that I am going to be working on Windows using SSH on Docker VM. If you want to know how to do that see this post here. So let’s start. Open SSH console. We are going to …

Read moreUsing WordPress and MySQL Docker Containers