Sitemap

My Experience Learning Docker

2 min readOct 27, 2022

--

Sharing my docker experience :]

Press enter or click to view image in full size
Photo by Ian Taylor on Unsplash

Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. The service has both free and premium tiers. The software that hosts the containers is called Docker Engine.

In simpler terms docker can be considered as a very flexible and highly adaptive Hypervisor.

How I got started with docker

I was introduced to what docker is, and the concept of virtualization, and was made aware of the benefits of using containers and how it can positively affect your development and production cycle by a video by Network Chuck, I would really recommend all readers check him out.

The Docker Labs Getting Started

Docker labs has a container called getting-started, which is a great way to get started with docker

docker run -d -p 80:80 docker/getting-started

this command pulls the docker/getting-started image if doesn't exist and creates a docker container

Prerequisites

But before you do any of that tho you should install docker, and preferably have a basic understanding of Linux or at least the mentality to give it a try :)

WHY THO?

This is not meant to be a tutorial on docker since I’m both not qualified (yet), but rather consider it to be a journal on what I've learned so far.

Get Advaith Narayanan’s stories in your inbox

Join Medium for free to get updates from this writer.

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Following the instructions from the docker/getting-started container and the above-mentioned videos I’ve brushed up on a few commands:

DOCKER PS

This command lists all the active containers

➜  docker docker ps
CONTAINER ID IMAGE COMMAND ...
9d46f4c2c053 node:12-alpine "docker-entrypoint.s…" ...
be9cfd7883ec mysql:5.7 "docker-entrypoint.s…" ...
d5ef88cb9795 docker/getting-started "/docker-entrypoint.…" ...

DOCKER RUN

This command runs a container :)

➜  docker run -d -p 80:80 docker/getting-started
567e46a6848def7795a6451ed90e70e58b5ba4847019c8d6e5e56aca7ca5f5e0

DOCKER IMAGES

A command to show all the images locally available

➜  docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql 5.7 14905234a4ed 3 days ago 495MB
node 12-alpine bb6d28039b8c 6 months ago 91MB
docker/getting-started latest cb90f98fd791 6 months ago 28.8MB

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

I might have lost a few hours which could have been spent socializing, but it was worth it.

Thanks for Reading :D

--

--