4 ms·
For docker-compose: When running and killing don't use ctrl+c It leaves anonymous volumes behind Start as deamon with: docker-compose up -d Stop with -v to re
by touchpadder 6y ago
For docker-compose:
When running and killing don't use ctrl+c It leaves anonymous volumes behind
Start as deamon with: docker-compose up -d
Stop with -v to remove anonymous volumes:
docker-compose down -v
This will slow down swelling
- devmunchies 6y agoHow do I view server logs in real time while developing if daemonized (while preserving all the colorization and stuff). Do I just do some kind of tail log stream or something?
- purple-dragon 6y agoI think it would just be: docker logs -f CONTAINER If you want to watch logs from a specific file within the container then I would just use 'docker exec' and whatever shell commands you prefer.
- X-Istence 6y agodocker-compose logs -f <service> So you don't have to manually hunt down the container you want the logs for.
- e12e 6y agoI often do: docker-compose up -d && docker-compose logs -f
- johnchristopher 6y agoA docker problem ? More of docker is the solution ! https://github.com/amir20/dozzle https://github.com/amir20/dozzle (a container that plugs into the docker API to render a webpage with logs of running containers)