Created
March 25, 2018 04:38
-
-
Save unk/122c60aa3fedbd0d8cedc1bc72db3776 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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