📄️ Introduction to Part 1
This part introduces containerization with Docker and relevant concepts such as image and volume. By the end of this part you are able to:
📄️ Definitions and basic concepts
What is DevOps?
📄️ Running and stopping containers
Next we will start using a more useful image than hello-world. We can run Ubuntu just with docker run ubuntu.
📄️ In-depth dive to images
Images are the basic building blocks for containers and other images. When you "containerize" an application you work towards creating the image.
📄️ Defining start conditions for the container
Next, we will start moving towards a more meaningful image. youtube-dl is a program that downloads youtube videos . Let's add it to an image - but this time, we will change our process. Instead of our current process where we add things to the Dockerfile hope it works, let's try another approach. This time we will open up an interactive session and test stuff before "storing" it in our Dockerfile. By following the youtube-dl install instructions we will see that:
📄️ Interacting with the container via volumes and ports
Let us get back to youtube downloader. It works yes, but it is quite laborous to get the download videos to the host machine.
📄️ Utilizing tools from the Registry
As we've already seen it should be possible to containerize almost any project. As we are in between Dev and Ops let's pretend again that some developer teammates of ours did an application with a README that instructs what to install and how to run the application. Now we as the container experts can containerize it in seconds. Open this project and read through the README and think about how to transform it into a Dockerfile. Thanks to the README we should be able to decipher what we will need to do even if we have no clue about the language or technology!
📄️ Summary
We started by learning what Docker container and image mean. Basically we started from an empty ubuntu with nothing installed into it. It's also possible to start from something else, but for now ubuntu had been enough.