Docker Community Forums

Share and learn in the Docker community.

Clone/duplicate Docker container to make variations


(Richbhanover) #1

Hi folks,

I have an application (it happens that it’s Wordpress - built from the Quickstart - Compose and Wordpress page) that’s working exactly as expected.

I would like to customize that container with my favorite settings/plugins/themes/etc. and then clone it. I would replicate the clone as the basis for a test/development system for multiple client web sites.

My questions:

  • What’s the best way to clone/encapsulate the state of a particular Docker container?

  • How do I replicate that state for each of my multiple Wordpress systems?

  • What commands do I use to start up/shut down each of those containers?

  • Is the Quickstart the best starting point? Is there another Dockerfile that is better suited to this purpose?

Many thanks!