This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### grep docker logs: | |
docker logs CONTAINER 2>&1 | grep "something" | |
### online liner commit running container, then squashed image: | |
docker save $(docker commit supatest supatest) | docker-squash -t supatest -verbose | docker load | |
### one liner to stop / remove all of Docker containers: | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |