From 2bda607a63523a7eede7011cfda66d5381a88d4c Mon Sep 17 00:00:00 2001 From: Chun Yu Date: Tue, 20 Feb 2024 00:56:19 +0800 Subject: [PATCH] Added summaries where relavant --- slides.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/slides.md b/slides.md index d7f9ac3..5144629 100644 --- a/slides.md +++ b/slides.md @@ -317,6 +317,49 @@ To remove an image: docker rmi ``` +--- +layout: two-cols +class: self-center px-2 +--- + +## Summary + +```bash +// Test out if docker is working +docker run hello-world + +// Emulating an ubuntu environment +docker run -it ubuntu /bin/bash + +// Running different versions of the same application +docker run -it python:3.8 python +docker run -it python:2.7 python + +// View running containers +docker ps +docker ps -a + +``` + +::right:: + +```bash +// Different ways to run a container +docker run prakhar1989/static-site +docker run --rm -it prakhar1989/static-site +docker run -d -P --name static-site prakhar1989/static-site + +// Finding published ports +docker port static-site + +// Stopping and removing a container +docker stop +docker rm + +// Removing an image +docker rmi +``` + --- layout: cover background: none @@ -417,6 +460,32 @@ docker run xer0x/spaceinvaders // Space Invaders on your terminal! docker run -it spkane/starwars:latest // Watch Star Wars on your terminal ``` +--- +layout: center +--- + +## Summary + +```bash +// Pull a docker image +docker pull/docker run + +// Different image tags +docker run -it python:3.8 python +docker run -it python:3.8-slim python +docker run -it python:3.8-alpine python + +// See instaalled images +docker images + +// Specifying specific architecture +docker run --platform linux/amd64 python:3.13 + +// Fun Docker Images +docker run xer0x/spaceinvaders +docker run -it spkane/starwars:latest +``` + --- layout: cover background: none