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.
## 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
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.
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.
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: 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.
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.
In this video lesson, part 1, I explain containerization in detail and introduce docker and the technology behind it.
Testing services in isolation using docker-compose