Changes
Page history
Update Docker Commands Cheat Sheet
authored
Sep 12, 2022
by
Simon
Show whitespace changes
Inline
Side-by-side
Docker-Commands-Cheat-Sheet.md
View page @
7bdc5c77
...
@@ -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
...
...
...
...