@@ -317,6 +317,49 @@ To remove an image:
317
317
docker rmi < image_name>
318
318
```
319
319
320
+ ---
321
+ layout: two-cols
322
+ class: self-center px-2
323
+ ---
324
+
325
+ ## Summary
326
+
327
+ ``` bash
328
+ // Test out if docker is working
329
+ docker run hello-world
330
+
331
+ // Emulating an ubuntu environment
332
+ docker run -it ubuntu /bin/bash
333
+
334
+ // Running different versions of the same application
335
+ docker run -it python:3.8 python
336
+ docker run -it python:2.7 python
337
+
338
+ // View running containers
339
+ docker ps
340
+ docker ps -a
341
+
342
+ ` ` `
343
+
344
+ ::right::
345
+
346
+ ` ` ` bash
347
+ // Different ways to run a container
348
+ docker run prakhar1989/static-site
349
+ docker run --rm -it prakhar1989/static-site
350
+ docker run -d -P --name static-site prakhar1989/static-site
351
+
352
+ // Finding published ports
353
+ docker port static-site
354
+
355
+ // Stopping and removing a container
356
+ docker stop < container-name>
357
+ docker rm < container-name>
358
+
359
+ // Removing an image
360
+ docker rmi < image-name>
361
+ ` ` `
362
+
320
363
---
321
364
layout: cover
322
365
background: none
@@ -417,6 +460,32 @@ docker run xer0x/spaceinvaders // Space Invaders on your terminal!
417
460
docker run -it spkane/starwars:latest // Watch Star Wars on your terminal
418
461
` ` `
419
462
463
+ ---
464
+ layout: center
465
+ ---
466
+
467
+ # # Summary
468
+
469
+ ` ` ` bash
470
+ // Pull a docker image
471
+ docker pull/docker run < image-name>
472
+
473
+ // Different image tags
474
+ docker run -it python:3.8 python
475
+ docker run -it python:3.8-slim python
476
+ docker run -it python:3.8-alpine python
477
+
478
+ // See instaalled images
479
+ docker images
480
+
481
+ // Specifying specific architecture
482
+ docker run --platform linux/amd64 python:3.13
483
+
484
+ // Fun Docker Images
485
+ docker run xer0x/spaceinvaders
486
+ docker run -it spkane/starwars:latest
487
+ ` ` `
488
+
420
489
---
421
490
layout: cover
422
491
background: none
0 commit comments