docker run -it -p 80:80 -p 3306:3306 --name container_name marlous/wordpress:latest /bin/bash
/* Creating volumes */
docker volume create test_wordpress_wp_config
docker volume create test_wordpress_apache_conf
docker volume create test_wordpress_mysql_conf
docker volume create test_wordpress_mysql_data
/* Running */
docker run -it -p 80:80 -p 3306:3306 -v test_wordpress_wp_config:/var/www/html/ -v test_wordpress_apache_conf:/etc/apache2 -v test_wordpress_mysql_conf:/etc/mysql -v test_wordpress_mysql_data:/var/lib/mysql --name container_name marlous/wordpress /bin/bash
service apache2 start
service mysql start
Content type
Image
Digest
Size
239.7 MB
Last updated
over 7 years ago
docker pull marlous/wordpress