v1.0.0
- php https://php.net/
- wordpress: https://wordpress.org/
- docker: https://www.docker.com/
- mysql: https://www.mysql.com/
- wp-data - used to store and restore database dumps
- wp-app - the location of your wordpress application
sudo bash export-database.sh
-
build docker image by running
docker-compose build
-
running docker image by running
docker-compose up
-
start docker image by running
docker-compose start
-
check docker inforation by running
docker-compose ps
-
identify the docker inforation by running
docker inspect <docker-name>
- stop docker image by running
docker-compose stop
- killing docker image by running
docker-compose kill
- removing docker image by running
docker-compose rm
- down docker image by running
docker-compose down --volumes
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' wordpress-web_wordpressdb_1
mysql -uwordpress -p -h<ip-address>
docker run -t -i wordpress-web_wordpress_1 /bin/bash
docker inspect wordpress-web_wordpress_1 | grep "IPAddress"
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' wordpress-web_wordpress_1