Update README.md

Added docker logs command. Useful for debugging problems.
master
Tai 2 years ago committed by GitHub
parent 9af8cabadf
commit 7a825395c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,12 +65,14 @@ Commands to enter a container's shell. Use bash first, if that doens't work try
## Commonly used Docker Specific Commands
```
docker container ls # list all running containers
docker container ls -a # list all containers even stopped ones
docker container rm # remove container
docker container kill # kill a running container
docker system prune # Remove all unused docker: containers, images, networks and volumes to free up space
docker container prune # Similar to system prune but only targets containers.
docker container ls # list all running containers
docker container ls -a # list all containers even stopped ones
docker container rm # remove container
docker container kill # kill a running container
docker system prune # Remove all unused docker: containers, images, networks and volumes to free up space
docker container prune # Similar to system prune but only targets containers.
docker logs CONTAINERNAME # Shows logs for the container
docker logs --follow CONTAINERNAME # Shows log for the container in the foreground
### While inside app specific folder
docker-compose restart # restart docker stack for application

Loading…
Cancel
Save