Skip to content

Instantly share code, notes, and snippets.

@aschmoe
Last active August 29, 2015 14:13
Show Gist options
  • Save aschmoe/c4e8024d4e12366894c1 to your computer and use it in GitHub Desktop.
Save aschmoe/c4e8024d4e12366894c1 to your computer and use it in GitHub Desktop.
Installing drupal docker image
# build from https://github.com/albatrossdigital/aws-docker-drupal-deployment
git clone
cd FOLDER
sudo docker build -t aschmoe/soar-drops-v1 .
# run a container on the image
sudo docker run -p 49160:80 -d --name soar_drupal aschmoe/soar-drops-v1
# run a container on the image with a mounted shared folder
sudo docker run -p 49160:80 -d --name soar_drupal -v /var/docker-temp:/var/docker-temp aschmoe/soar-drops-v1
# run a container with mounted data volume
sudo docker run -p 49160:80 -d --volumes-from soar_db --name soar_drupal aschmoe/soar-drops-v1
# check on container progress
sudo docker logs soar_drupal
# Enter bash on running container
sudo docker exec -it soar_drupal bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment