Update Docker Commands Cheat Sheet authored by Simon's avatar Simon
...@@ -30,6 +30,15 @@ You can replace "freedmr" with the container you wish to restart ...@@ -30,6 +30,15 @@ You can replace "freedmr" with the container you wish to restart
This should be followed by a down / up sequence This should be followed by a down / up sequence
## Show logs
docker-compose logs [-f] [--tail 300] freedmr
the -f and --tail are optional.
-f is follow - like tail -f
--tail N shows the last N lines
## Connect to a shell inside a running container ## Connect to a shell inside a running container
docker exec -it freedmr /bin/sh docker exec -it freedmr /bin/sh
... ...
......