Enter Bash of your Docker docker exec -it docker_wordpress_1 bash Delete All Images & Containers #!/bin/bash # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)
Category / Docker
Docker+WP
Create a docker-compose.yml file in a any folder i.e. /Documents/Docker/mydomainsample.com/docker-compose.yml docker-compose.yml version: ‘2’ services: wordpress: depends_on: – mysql image: wordpress:php7.0 ports: – “8080:80” volumes: – ./htdocs/assets:/var/www/html/wp-content links: – mysql environment: WORDPRESS_DB_HOST: mysql:3306 WORDPRESS_DB_PASSWORD: wp mysql: image: mariadb:10.1.19 ports: – “8081:3306” volumes: – ./databases:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: wp Know Issues WordPress Docker not starting or closing unexpectedly: […]