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

Posted July 12, 2016 4k views

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

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:

by Justin Ellingwood
Docker, a containerization platform developed to simplify and standardize deployment in various environments, was largely instrumental in spurring the adoption of applications and services that can be easily deployed to distributed systems. A large amount of software has been created to build on this ecosystem of distributed container management, and this tutorial will go over the most common of these components.