aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial.txt
diff options
context:
space:
mode:
authorCristian Cezar Moisés <[email protected]>2024-10-20 20:14:54 +0000
committerCristian Cezar Moisés <[email protected]>2024-10-20 20:14:54 +0000
commitbbf27fb75d0e1ea6856057857b9267d7fb5c6cb5 (patch)
tree99533966b78e01e4298cdcb25d16b1e6409e7d3b /tutorial.txt
parentc4d28f43343c27c936d8ed9a66e372c5340605cf (diff)
Upload files to "/"HEADmain
Diffstat (limited to 'tutorial.txt')
-rw-r--r--tutorial.txt12
1 files changed, 12 insertions, 0 deletions
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