Remove dangling images & container

[sourcecode language=”powershell”] # Delete all stopped containers docker rm $( docker ps -q -f status=exited) # Delete all dangling (unused) images docker rmi $( docker images -q -f dangling=true) [/sourcecode]

Docker-compose.yml file để cài wordpress trên virtualhost

[sourcecode] version: "2" services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy ports: – "80:80" volumes: – /var/run/docker.sock:/tmp/docker.sock:ro – ./nginx:/etc/nginx/conf.d db: image: mariadb ports: – "8001:3306" volumes: – ./db:/var/lib/mysql environment: – MYSQL_ROOT_PASSWORD=secret phpmyadmin: image: phpmyadmin/phpmyadmin:latest ports: – "8002:80" links: – db:mysql environment: – MYSQL_ROOT_PASSWORD=secret – VIRTUAL_HOST=phpmyadmin.app – VIRTUAL_PORT=8002 wp: image: wordpress ports: – . . . Read more