Docker tips & tricks
Docker tips & tricks 1. one-line command for build & run container at once docker-compose up -d --build -d means in background (daemon) 2. speedup docker builds 3. Rebuild containers using docker compose when dockerfile changes docker-compose up --force-recreate 4. If I have a bad deploy this may help docker-compose build --no-cache 5. R emove all images docker-compose down --rmi ("local"|"all") 6. Automatically update services with file watch in Docker Compose ( experimental, Docker Desktop 4.24.0 said that this feature is now open for all ) docker-compos up --watch 7. Removing containers with the data ( be careful, you will lose all your data for the containers that are in docker-compose ) docker-compose down -v 8. Doker 3.5+: network section changes instead...