Skip to content

Instantly share code, notes, and snippets.

@jamesattard
Last active April 16, 2023 04:08
Show Gist options
  • Save jamesattard/e40bc72d47071a1f129689fc58bea286 to your computer and use it in GitHub Desktop.
Save jamesattard/e40bc72d47071a1f129689fc58bea286 to your computer and use it in GitHub Desktop.
Docker Intro Session Exercise #1
# In this exercise we are going through the Docker fundamental commands.
# After completing this lab, you are expected to know how to:
#
# a. find Docker images
# b. run containers
# c. stop containers
# d. delete containers
#
# Docker Intro Session Lab - James Attard (2019)
# List Docker Images
docker image ls
# List Docker Containers
docker ps
# Check your local Windows build version
winver # Should be Build 1803
# Pull and run the Powershell Docker Image tagged Nanoserver 1803
docker run mcr.microsoft.com/powershell:6.2.1-nanoserver-1803
# List Docker Images
docker image ls
# List Docker Containers
docker ps
# Stop Docker container
docker stop <container-id>
# Remove Container
docker rm <container-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment