In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use dockerfile on github to quickly create LAMP development environment", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly, together to study and learn "how to use dockerfile on github to quickly create LAMP development environment"!
Create mysql images and run containers
git clone https://github.com/tutumcloud/tutum-docker-mysqldocker build -t tutum/mysql 5.6/docker run -d MYSQL_PASS="mypass" --name db tutum/mysql
Create php apche images and run containers
git clone https://github.com/tutumcloud/tutum-docker-phpdocker build -t tutum/apache-php .docker run -d -p 80:80 --link db:mydb -v /app:/app tutum/apache-php
Finally copy my php application to the local/ap p directory.
curl http://localhost/
* Note that the IP of each startup of the mysql container is dynamically dispatched. The ip address of mysql in php application is the alias mydb of mapping. If you need to view it, you can view it through the following command
docker exec db ifconfig Thank you for reading, the above is "how to use the dockerfile on github to quickly create a LAMP development environment" content, after learning this article, I believe you have a deeper understanding of how to use the dockerfile on github to quickly create a LAMP development environment. The specific use needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.