Docker learn a few tips and tricks

In the previous article and Q & A, I also said that the general method of learning technology, learning technology is not just about what you want to point out, but to teach how to do it, not just about what you should have technical skills, it is important that you follow how to learn from them. In this paper, the worm and we can discuss at the next learning how to learn Docker Docker and learning should focus on those issues.

 

 

Do you know what is virtualization?

In recent years, many developers into the pit and operation and maintenance engineers should have heard of virtualization, virtualization and cloud are darling and the new buzzword, but the substance and actual content on virtualization may people do not really understand many.

Virtualization and distributed cloud computing is a revolutionary technology, at present and in the future for a long period of time will be the hot spots and trends. Understand virtualization, but also make it easier for technicians entry, easier to get high wages.

Learn the difference between virtual and containerization, how to solve the problem of virtualization container, is a problem is the best start Docker journey, rather than how the "windows installed docker?", "I do not know Linux, how do I learning docker? ", this question.

Start with a simple command line

 

 

This is the best path to learning docker technology to anyone. Whether you are learning Docker or any other technology or skills (such as git, also similar).

CLI learning is very important. Docker There are many good GUI, but if you want to master a technology, the best way is to use its basic commands, from here to understand the essence of the principle and troubleshooting.

From simple command to start, this is the essence of these tools (the agreement), but also can help you better understand the principles and essence, easier to troubleshoot.

Please learn Docker forget Kubernetes, Docker Swarm, as well as tools like Docker Compose. In other words, the first step please simplistic, first learn to walk, to understand the nature and other UI tools, other interfaces are basically these packaging (to understand the nature, you can also write your own such a tool, or call they API secondary development).

Push and Pull first container such as a simple mirror hello world. And on this basis we do some changes and commit the changes, mark it and then push.

If you learn from deployment and cluster configuration and use K8s the beginning, then you need to how to solve the big problem of the head!

Docker network

Containers and filing system the easiest part may be confusing network. Docker using the same network infrastructure, and inherent to the host operating system. You can run Docker containers on the localhost, without concern for SDN and other issues.

You can learn more about how to create and use Docker cluster scheduling system, which needs to learn some knowledge of the network.

Docker can use its default network

Non-network mode

• Host network mode

· Bridge Mode

· Docker_gwbridge Network

You can also use third-party software to define and support the multi-host network, such as:

Bridging Network

 

 

· Docker_gwbridge Network

 

 

· Overlay Network

 

 

· Flannel

 

 

· Weave

 

 

· Open vSwitch

 

 

· Calico Network

 

 

· Pipework

 

 

· OpenVPN

and many more

Learn container network may take some time, but it is well worth spending time.

File system

 

 

Docker supports many file systems, file systems and each has its advantages and disadvantages. So why should we choose in devicemapper or overlay2 aufs it?

 

 

What is the top writeable layer? What is the difference between mirroring and containers is?

Do you know what CoW strategy?

Like Docker network, learn how to Docker in the mirror and container storage and management of data is a very important foundation, you need to first understand and become familiar with the concept.

Docker,Compose和Machine

Docker ecosystem is very large, but also are constantly updated every day and grow. Learn Docker Compose and Docker Machine will lighten your load, and gives you the ability to use more Docker and optimize the delivery and deployment of pipelines.

Docker first learn the basics, then go to Docker Compose and Docker Machine.

Container arrangement

Docker's mastery of the basic concepts and tools, we began to focus on business processes.

No choreography Docker is not a scalable solution, but there is no such Dockery significance. Container arrangement will allow you to transfer from the transaction (container) to the abstract (service). It allows you to simplify and optimize deployment.

 

 

If you started going further, you can use the Docker Swarm, and then move on to more complex systems, such as K8S.

Trying to do development on Docker

尝试用Docker API开发东西。

使用Docker对并行计算集群进行原型设计

使用Docker对无服务系统进行原型设计

了解如何使用Docker API,编写orchestrator原型或自我修复系统。

要不耻下问

 

 

我知道初学者可能会有一些问题,可能会问一些很出格的问题,很多东西在询问之前其实可以通过搜索引擎(百度、谷歌)下都可以直接解决。通过搜索引擎解决自己的大部分问题,其他可以通过在线论坛,stackoverflow,QQ群等询问。

如果你在没有任何帮助的情况下找到答案更好,这比在论坛、QQ群中提出你遇到没人解答过第一个问题很有帮助,但如果你需要,请不要羞于询问。

Guess you like

Origin www.cnblogs.com/sea520/p/11362079.html