Containers for IT People – Don’t Fear The Container!
We have all been there right? The developers want to use some fancy container thing they heard about at a conference. In this post I want to share a very gentle introduction to containers directed at the IT professionals out there.
What you are going to need
- Your computer running Windows 10
- Installed Docker Desktop which you can get here
- Coffee or some whiskey depending on what time of day it is
Ok let’s get started. Now that you have Docker installed where do we start? Open up Powershell. Let’s issue our very first command.
docker pull mcr.microsoft.com/powershell:latest
Windows Terminal latest: Pulling from powershell 5c939e3a4d10: Pull complete c63719cdbe7a: Pull complete 19a861ea6baf: Pull complete 651c9d2d6c4f: Pull complete f8da51e1a752: Pull complete Digest: sha256:a896a35c8f4d833d446786188945f42a75dccd2b63789458f6779d7979a4515f Status: Downloaded newer image for mcr.microsoft.com/powershell:latest mcr.microsoft.com/powershell:latest
Congrats you downloaded the official powershell container! We can take a look at our local images with a simple command. Make note of the IMAGE ID we will use it shortly!
REPOSITORY TAG IMAGE ID CREATED SIZE mcr.microsoft.com/powershell latest 51072405f391 25 hours ago 297MB
We can start a container based on this image with a simple docker command
docker run -it mcr.microsoft.com/powershell:latest
Windows TerminalPowerShell 6.2.4
Copyright (c) Microsoft Corporation. All rights reserved.
Type 'help' to get help.
Go ahead try some commands. 1..10 will count to 10. Type ‘exit’ to top the container and go back to your local powershell. This is a cool way to try something out without commitment or messing up your existing environment. Stay tuned for more fun with containers!