Installing and playing with Docker on an Ubuntu based server is interesting, but what we really want is to install and run containerized applications. A good example application is WordPress, as it consists of a web front-end backed by a MySQL database.

First make sure you have your CenturyLink Cloud Server setup correctly with Docker installed as per this tutorial. Next go to the public Docker Index to find a container you want to use. Search for WordPress and you will find about 30 results. For the most part you only want to use a Trusted Repository.

NOTE: Most of the docker containers in the Docker Index are unsafe to use as-is. You have no idea how they were built, so you can't be sure there isn't malware on the images. If you want to use any public Docker images as a starting point, make sure to use a "Trusted Repository" (read more about trusted builds and make sure to audit it's Dockerfile before you use it.

One of the good trusted WordPress containers out there is managed by Tutum, a Docker-based hosting company that lets you run Docker containers and provides private docker registries and private docker images. The WordPress container you want to use is called tutum/wordpress and you can use it quickly and easily by doing the following:

# Download and run a containerized Wordpress
$ sudo docker run -d -p 80 tutum/wordpress /
# Returned data
Unable to find image 'tutum/wordpress' (tag:latest) locally
Pulling repository tutum/wordpress
...a bunch of stuff...
d713116991b8: Download complete

And that is everything you need to know to set up Wordpress in a single Docker container. Just to ensure that everything is as it should be let's actually bring up WordPress. In order to do that we need to know the port that Docker has assigned to the application.

# List Docker information $ docker ps # Returned Data CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
567a9d28bb37 tutum/wordpress:latest / 13 seconds ago Up 12 seconds<strong>49154</strong>->80/tcp, 3306/tcp suspicious_heisenberg

Make a note of the returned port (e.g., number). In the example above the returned port is 49154 and that is where WordPress is listening. Validate by pointing your browser at http://public ip:port number. This will bring up the Wordpress installation dialog and everything is good to go.


This is a framework for downloading and installing containerized applications that have been designed to run everything in one container.

Kubernetes and Docker on CenturyLink Cloud

Check out our Kubernetes page on CenturyLink Cloud. We give you the deployment tools you need to manage your applications quickly and easily. Also, you might be interested in our Knowledge Base article on using Ansible to create a Kubernetes cluster on CenturyLink Cloud - all by running a single script.

Don't have a CenturyLink account? No problem. Get started with CenturyLink Cloud for free and receive a healthy credit toward any of our products or services.