From bbf27fb75d0e1ea6856057857b9267d7fb5c6cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Cezar=20Mois=C3=A9s?= Date: Sun, 20 Oct 2024 20:14:54 +0000 Subject: Upload files to "/" --- tutorial.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tutorial.txt (limited to 'tutorial.txt') diff --git a/tutorial.txt b/tutorial.txt new file mode 100644 index 0000000..383e6da --- /dev/null +++ b/tutorial.txt @@ -0,0 +1,12 @@ +# ACCESS THE SYSTEM IN THE CONTAINER +docker run -it IMAGE_ID_HERE /bin/bash +# START ALL STOPPED CONTAINERS + docker start $(docker ps -a -q --filter "status=exited") +# RUN THE LAST STOPPED CONTAINER: + docker start -a -i 'docker ps -q -l' +# LIST ALL IMAGES + docker images +# LIST ALL CONTAINERS + docker ps -a +# RE-ACCESS THE SYSTEMS + docker exec -it CONTAINER_ID_HERE /bin/bash -- cgit v1.2.3