Docker Intro: Step-by-Step

Docker Intro: Step-by-Step

Docker Introduction: Step-by-Step. An overview of Docker to get yourself started, many code examples + additional resources to look into. What Docker is, how it works, and what to do with it. Docker is a containerization tool.

Docker is a containerization tool. This means you can run stuff in it very easily, basically anywhere, on its own, or with many other things together. And with microservices being cool now, containerization is too. So, if you are in the industry you should have an idea of what Docker is, how it works, and what to do with it. At least, that’s what I thought to myself, so here is my humble summary.

Installing Docker

Linux

  • got to  docs.docker.com and navigate to Linux
  • choose your Distro — be sure to pay attention to the supported versions
## uninstall old versions
sudo apt-get remove docker docker-engine docker.io containerd runc

## using the convenience script
curl -fsSL <https://get.docker.com> -o get-docker.sh
sudo sh get-docker.sh

Windows

Docker Toolbox

The OG support for Docker, which gives you a set of tools to make working with it on Windows easy. This will use Oracle VirtualBox, then install Linux and then run Docker. In any case, this is the old and deprecated way — now you can automate stuff by using Docker Desktop.

Docker Desktop

Similar to the previous solution, but instead of VirtualBox, this uses the native virtualization tool Hyper-V. Still, a Linux system is created, but now on Hyper-V where Docker once again runs on a Linux instance within Hyper-V.

Also, you cannot run Windows apps on the Linux-based Docker, for this you need Windows Server 2016 and explicitly tell Docker to run Windows Containers instead of Linux Containers.

containerization docker microservices

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Docker: Installing Docker and Understanding basic docker commands

“Docker: Understanding Docker Architecture and Components”, The First thing we are going to do is to run the “docker run hello-world” command. This command tries to find the “hello-world” image locally and if not found, it then downloads an image from the docker hub and runs the container out of this image.

Docker: Manage Data in Docker -Understanding “Docker Volumes” and “Bind Mounts”

Manage Data in Docker -Understanding “Docker Volumes” and “Bind Mounts”. Volumes are stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes/ on Linux). Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker.

What is Containerization? What is Docker? | Containerization vs Virtualization

In this video lesson, part 1, I explain containerization in detail and introduce docker and the technology behind it.

Functional Tests for Docker Microservices

Testing services in isolation using docker-compose