aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial.txt
diff options
context:
space:
mode:
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