docker run -it -p 80:80 -p 3306:3306 --name container_name marlous/lamp:latest /bin/bash
/* Creating volumes */
docker volume create test_lamp_www
docker volume create test_lamp_apache_conf
docker volume create test_lamp_mysql_conf
docker volume create test_lamp_mysql_data
/* Running */
docker run -it -p 80:80 -p 3306:3306 -v test_lamp_www:/var/www -v test_lamp_apache_conf:/etc/apache2 -v test_lamp_mysql_conf:/etc/mysql -v test_lamp_mysql_data:/var/lib/mysql --name container_name marlous/lamp:latest /bin/bash
service apache2 start
service mysql start
Content type
Image
Digest
Size
207.9 MB
Last updated
over 7 years ago
docker pull marlous/lamp