Docker


As part of my learning path (learning Python, Linux, AWS, DevOps, Networks and more), I am learning to work with Docker and containers. I’m going to post what I learn as I move along, starting with ground zero and then hopefully working up to more interesting aspects. Away we go!

First, i downloaded the .dmg image from the Docker website, and installed the application. Next, I tested that it was installed successfully with this command on the CLI:

$ docker --version

This resulted in displaying Docker version 27.2.0, so I’m good to go there.

Next, I tested the Docker installation using a “hello world” program. By running the following command, a Docker image was pulled from the public Docker image repository, then a container was created and run from that image. This is pretty simple, but baby steps!

$ docker run --rm hello-world

This displayed “Hello from Docker!” and some text explaining what had happened in the background. Here is the reference guide that expla9ings the different attributes that can be added to the docker command, like ‘–rm’ used above. In this case, $ docker run –rm is used to automatically remove the container and its associated anonymous volumes when it exits.

Accorrding to this article by ZDnet, Docker is “hotter than hot” because you can get more usage out of server and it’s easy to package and ship programs. Mind you, this article was written in 2018, but that is still true

,

Leave a comment