Skip to content

Instantly share code, notes, and snippets.

@unk
Created March 25, 2018 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unk/122c60aa3fedbd0d8cedc1bc72db3776 to your computer and use it in GitHub Desktop.
Save unk/122c60aa3fedbd0d8cedc1bc72db3776 to your computer and use it in GitHub Desktop.
docker pull linode/lamp:latest
docker run -i -t -d -p 4040:80 -p 33060:3306 \
-v /project/path:/var/www/example.com/public_html \
--name project_name linode/lamp /bin/bash
docker exec project_name apt-get update -y
docker exec project_name apt-get install php5-mysqlnd php5-curl -y
docker exec project_name sed -i -e 's/bind-address/#bind-address/g' /etc/mysql/my.cnf
docker exec project_name service apache2 start
docker exec project_name service mysql start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment