shocked! Jingdong T8 boss stayed up until three or four in the morning every day, and turned out to be writing Docker tutorials

Write in front

Docker is in full swing. This is not a pure hype concept. Docker has indeed solved the pain points of development and operation and maintenance, so it has been widely used in enterprise development.

Docker is an open source software project that allows applications to be deployed in software containers to be automated, thereby providing an additional software abstraction layer on the Linux operating system, as well as automatic management of operating system layer virtualization mechanism.

Jingdong T8 Daniel stayed up every night until three or four in the morning, and wrote a detailed Docker tutorial for more than half a month. I believe you will have a deeper understanding of Docker after reading this tutorial.

[docker series-1] First encounter with Docker

  • What is docker
  • docker and virtual machine
  • Docker and traditional containers
  • Docker application scenario
  • Docker core components
  • docker related technology

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker. Series-2] Basic container operation-1

  • View container
  • Create a container

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker,series-3]Basic container operation-2

  • Container start
  • Container stop
  • Container delete

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-4] execute commands in the container

  • Attached to the container
  • Execute commands in the container

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker.Series-5] Advanced container operation

  • View container information
  • View container process
  • View container logs

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-6] container import and export

  • Container export
  • Container import

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker. Series-7] Mirror introduction

  • The relationship between image and container
  • Mirrored architecture
  • Copy-on-write mechanism of mirroring

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker. Series-8] Local mirror management

  • View
  • download

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker. Series-9] Create a local mirror

  • Create a container
  • Create a local mirror

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-10]Dockerfile

The above introduced the reader to a simple way to create a local mirror, but the commit method has some problems, such as not being transparent enough, unable to be repeated, and large in size. In order to solve these problems, you can consider using Dockerfile.

Dockerfile is-an ordinary text file, which contains instructions one by one, and each instruction will build one layer. Let's look at a simple example first.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-11 ]Docker Hub

Similar to the code hosting service provided by GitHub, Docker Hub provides image hosting services. The Docker Hub address is https://hub.docker.com/. With Docker Hub readers can search, create, share and manage images. The mirrors on Docker Hub are divided into two categories. One is official mirrors, such as nginx, mysq| etc. we used before, and the other is ordinary user mirrors, which are uploaded by users themselves.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker. Series-12] Automated construction

Automated build is to use Docker Hub to connect to a GitHub repository or BitBucket repository containing Dockerfile files. Docker Hub will automatically build an image. The image built in this way will be marked as Automated Build, also known as Trusted Build. Build), the image built by this build method, others can freely view the content of the Dockerfile when using it, and know how the image came from. At the same time, since the build process is automatic, it can ensure that the images in the warehouse are all Newest.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-13] Create your own Docker Hub

The Docker Hub we used earlier is officially provided by Docker. We can also build our own Docker. The construction method is also very container. Because Docker has officially made the Docker registration server into a mirror, we can just pull it down and run it.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-14] container network

The container runs on the host, and the service provided by it can only be used if the external network can access the container. This article is here to understand the network knowledge in the container.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-15] Introduction to data volume

The data volume can bypass the copy system, share directories or files between multiple containers, and between the container and the host, and the data can be wound around the copy system to achieve local disk I/O performance.

This article first shows readers the basic usage of data volumes through a simple case.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker,series-16] Host directory as data volume

The usage of the data volume above is not the best solution. Generally speaking, we may need to explicitly specify that a directory in the host computer is mounted to the container. This specification method is as follows:

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-17] Data volume other operations

  • Data volume in Dockerfile
  • View all data volumes
  • View data volume details
  • Delete data volume

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker,series-18] data volume container

The data volume container is a container specially used to mount data volumes, and the container is mainly for reference and use by other containers. The so-called data volume container is actually an ordinary container, for example:

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker,series-19] Data backup and recovery

The data volume container can be used to realize data backup and recovery.

  • Backup
  • restore

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-20] Container connection

Generally speaking, after the container is started, we use the service provided by the container through port mapping. In fact, port mapping is just a way to use the container service. In addition to this method, you can also use the container connection method. Container service.

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

[docker series-21] container orchestration

  • Ready to work
  • Write Dockerfile
  • 编写docker-compose.yml
  • run
  • Initial configuration
  • test
  • other

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

 

Jingdong T8 Daniel stayed up every day until three or four in the morning, and after more than half a month, the detailed Docker tutorials written out are organized into documents. I believe that after reading this tutorial, you will have a deeper understanding of Docker.

How to receive Docker tutorial: like + follow, add assistant VX: mxx2020666, you can receive it for free

Zhenjing!  Jingdong T8 Daniel stayed up until three or four in the morning every day, turned out to be writing Docker tutorials

Guess you like

Origin blog.csdn.net/m0_46995061/article/details/109098127