Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


This repo contains a recipe for making a Docker container running Drupal8, using Linux, Apache, MySQL, Memcache and SSH. To use it, make sure you first Install Docker.

#Quick 3 step instructions:

1 - Install docker:

2 - Get the image and run it using port 80:

sudo docker run -i -t -p 80:80 ricardoamaro/drupal6

That's it!

3 - Visit http://localhost/ in your browser

using user/pass: admin/admin


  • Drupal account-name=admin & account-pass=admin
  • ROOT SSH/MYSQL PASSWORD will be on /mysql-root-pw.txt
  • DRUPAL MYSQL_PASSWORD will be on /drupal-db-pw.txt

How to go back to the last docker run?

sudo docker ps -al
(get the container ID)
sudo docker start -i -a (container ID)

You can also clone this repo somewhere and build it,

git clone
cd drupal6-docker-app
sudo docker build -t <yourname>/drupal6 .

Or build it directly from github,

sudo docker build -t ricardo/drupal6

Note1: you cannot have port 80 already used or the container will not start. In that case you can start by setting: -p 8080:80

Note2: To run the container in the background

sudo docker run -d -t -p 80:80 <yourname>/drupal6

More docker awesomeness

This will create an ID that you can start/stop/commit changes:

# sudo docker ps
ID                  IMAGE                   COMMAND               CREATED             STATUS              PORTS
538example20        <yourname>/drupal6:latest   /bin/bash /   3 minutes ago       Up 6 seconds        80->80


sudo docker stop 538example20
sudo docker start 538example20

Commit the actual state to the image

sudo docker commit 538example20 <yourname>/drupal6

Starting again with the commited changes

sudo docker run -d -t -p 80:80 <yourname>/drupal6 /

Shipping the container image elsewhere

sudo docker push  <yourname>/drupal6

You can find more images using the Docker Index.

Clean up

While i am developing i use this to rm all old instances

sudo docker ps -a | awk '{print $1}' | grep -v CONTAINER | xargs -n1 -I {} sudo docker rm {}

Known Issues

  • Warning: This is still in development and ports shouldn't be open to the outside world.


Feel free to submit any bugs, requests, or fork and contribute to this code. :)

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request


Created and maintained by Ricardo Amaro


GPL v3


drupal6 docker app




No releases published


No packages published
You can’t perform that action at this time.