Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neeraj9/3f75ea97daab2486ba70df9e6769efea to your computer and use it in GitHub Desktop.
Save neeraj9/3f75ea97daab2486ba70df9e6769efea 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