I don't what web server inside my ubuntu droplet after installed wordpress using Docker Compose

July 12, 2016 1.1k views
Docker WordPress Ubuntu

I followed this tutorial to launch my blog.

BUT i don't know what web server it's installed, nginx? apache?
it surprised me, i don't even find any directory like /var/www/html/ or etc/nginx/. what happens under the hood?

2 Answers
gndo July 12, 2016
Accepted Answer

According to the docker wordpress documentation, the "latest" image tag is associated with apache. A quick test would be to use the docker top command. From the linux command line, try:

# replace 'wordpress' with the container name you specified in the *yml* file for wordpress image
docker top wordpress

Unless you specified (external) volumes, you would need to look inside of the container. Read the getting started with docker engine guide for more info.

  • Exactly, thx, i saw it from the output. but is there any way to configure internal apache?

    • @eunicejhu - You can get a bash session within the container:

      # Replace 'wordpress' with your container name/id, and if bash doesn't work
      # then use /bin/sh instead.
      docker exec -t -i wordpress /bin/bash

      Good luck.

      • great, thx. but i failed to modify the file. i tried nano, vim, vi etc. i got "command not found" error. then i tried to install one "apt-get install nano" . failed again with error message "

        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        E: Unable to locate package nano

        do you have any solution to modify files in the bash session, please? thank you


Docker Compose helps you provision Docker containers. Wordpress is installed in a Docker container, which is similar to a virtual machine in the sense that it is isolated from your actual server.

The Wordpress image uses the Apache webserver internally. You can read more about Docker and containerization here:

In the past few years, there has been a resurgence of interest in containerization and its related technologies. Specifically, many organizations are now designing their applications and services to rely on distributed systems that can easily scale and survive node...
Have another answer? Share your knowledge.