I tried the Docker tutorial!

Nanikore

This article is an entry for the 23rd day of Ubiregi Advent Calendar 2020. It's been four days since this post (12/27), but I had a strong desire to keep it as a memorandum, so I wrote it down.

Probably Docker is doing a Docker tutorial that is done by tens of thousands of people I wanted to know what it was & I wanted to use it in my portfolio.

References

Since the Docker tutorial was in English, I really wanted to read the original and understand it, but I felt like I was frustrated on the way, so I proceeded based on the Japanese translation article by @Michinosuke. Overwhelming thanks: bow: https://qiita.com/Michinosuke/items/5778e0d9e9c04038903c#docker%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97

As I proceeded through the tutorial, I googled for words that I couldn't understand.

Tutorial memo

From here on, it's a bit rough, but it's a memo that extracts what I understand and what I think is important in the tutorial. I think there are some things that are strange to understand, so please point out!

What is Docker?

You can boot another OS on your PC. A container for a container to boot another OS. That's the image I have. In the tutorial, I started node.js.

What makes you happy with Docker?

-If you start various containers and create a development environment in the same way as the production environment, there will be no scenes like "Why can you do it in the development environment but not in the production environment ..."? ・ There may not be much benefit if you develop by yourself, but if you use one Docker compose for team development, it is strange that the same environment will be created! You can build the environment immediately! Is there a benefit like that?

Points that I struggled with in the tutorial

・ I can actually experience it, but I didn't understand the meaning of the command so much that I stopped investigating it in detail. Proceed while understanding the meaning properly! You might say that, but the purpose of the tutorial is just like Docker! I think it's to understand. -Hit the command in this directory! Since it is not a kind design like this, I sometimes got an error even if I executed it according to the tutorial. I solved it when I googled. ・ The volume is amazing. I think it is possible to end it if you do your best and spend one day off. It's about 7-8 hours. ・ Since the story is abstract, it is really difficult to understand the content. Docker is deep ... ・ Do you actually use named volume? I somehow understood that the bind mount seems to be very useful.

What to do in the future

・ Tutorial is to get an overview. I don't think it's suitable for actual battles, so I wondered if it would be better to take a course with an introductory book or udemy. ・ The quickest way is to introduce it into the portfolio quickly. -Container deployment? I want to try. It looks very difficult!

Recommended Posts

I tried the Docker tutorial!
I tried the VueJS tutorial!
[I tried] Spring tutorial
I tried using Docker for the first time
I tried touching Docker for the first time
I tried the FizzBuzz problem
I tried BIND with Docker
I tried to summarize the state transition of docker
I tried installing the Docker Integration plugin in IntelliJ
[WIP] I tried the configuration of Docker + Streama + NFS
I tried Angular tutorial + SpringBoot + PostgreSQL
I tried the Java framework "Quarkus"
[Rails] I tried deleting the application
I tried to build the environment little by little using docker
I tried to build the environment of WSL2 + Docker + VSCode
docker tutorial (memo)
I tried to summarize the methods used
I tried running Docker on Windows Server 2019
I tried using Scalar DL with Docker
I tried to build the environment of PlantUML Server with Docker
I tried the new era in Java
I tried Spring.
I tried to implement the Iterator pattern
I tried tomcat
I tried youtubeDataApi.
Microservices 101-I tried putting Docker on Ubuntu-
I tried to summarize the Stream API
I tried refactoring ①
I tried the AutoValue library in Intellij
What is Docker? I tried to summarize
I tried FizzBuzz.
I tried JHipster 5.1
I tried running the Angular sample in Auth0 Quick Start with Docker
I tried migrating the portfolio created on Vagrant to the Docker development environment
I rewrote the Rails tutorial test with RSpec
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I tried to organize the session in Rails
[API] I tried using the zip code search API
I tried running Ansible on a Docker container
I tried to set tomcat to run the Servlet.
I tried installing docker on an EC2 instance
I tried using the profiler of IntelliJ IDEA
I tried running Autoware
I tried using Gson
I tried QUARKUS immediately
I tried using TestNG
I tried Spring Batch
I tried using Galasa
I tried node-jt400 (Programs)
I tried node-jt400 (execute)
I tried node-jt400 (Transactions)
I changed the way Rails tutorials run: Rails Tutorial Notes-Chapter 9
I tried to organize the cases used in programming
I tried using the Server Push function of Servlet 4.0
I tried to decorate the simple calendar a little
[Rails] I tried playing with the comment send button
05. I tried to stub the source of Spring Boot
I tried to reduce the capacity of Spring Boot
I tried the new feature profiler of IntelliJ IDEA 2019.2.
I tried using the Migration Toolkit for Application Binaries