Easy and fast way to have the latest Drupal6 running on your box in minutes!
5.1K
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:
https://docs.docker.com/installation/
sudo docker run -i -t -p 80:80 ricardoamaro/drupal6
That's it!
using user/pass: admin/admin
sudo docker ps -al
(get the container ID)
sudo docker start -i -a (container ID)
git clone https://github.com/ricardoamaro/drupal6-docker-app.git
cd drupal6-docker-app
sudo docker build -t <yourname>/drupal6 .
sudo docker build -t ricardo/drupal6 https://github.com/ricardoamaro/drupal6-docker-app.git
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
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 /start.sh 3 minutes ago Up 6 seconds 80->80
Start/Stop
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 /start.sh
Shipping the container image elsewhere
sudo docker push <yourname>/drupal6
You can find more images using the Docker Index.
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 {}
Feel free to submit any bugs, requests, or fork and contribute to this code. :)
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)Created and maintained by Ricardo Amaro http://blog.ricardoamaro.com
GPL v3
Content type
Image
Digest
sha256:93e7afda3…
Size
156.9 MB
Last updated
over 5 years ago
docker pull ricardoamaro/drupal6