My Docker / docker-compose Notes

content is updated continuously. Useful commands for daily use:Build Docker: docker-compose build Run in background : docker-compose up -dFollow Docker Logs: docker-compose logs -f containeridGet Bash/SSH into a running Container: docker exec -it containerid bash Remove all stopped containers: docker rm $(docker ps -a -q)

Docker for Local WordPress Development

Create a file  called docker-compose.yml with the following code in your project directory and then enter ‘docker-compose up’ at the command line.