Step by step guide to a wordpress docker

This guide is a quick-and-dirty, copy-paste ready step by step guide to a docker based clone of a live wordpress site.

It is based on Gear11 tutorial and depends on Gear11 Docker available on Github. No fancy, this page is a copy of the github README edited for personal purpose, you may want to refer to original documentation for a detailed guide.

Create and setup a dedicated machine

Start the machine

Configure VM

Build Dockerfile

Create a Duplicator archive and download archive + install file to /Users/fugaz/Share/wp-install/
Launch the container and install wordpress with

WordPress will be available at 192.168.99.100.

Save a snapshot and restart it

Future plans and improvements:

  • use regular wordpress and mysql containers
  • skip the Duplicator plugin
  • integrate into a jenkins job