docker导出日志到本地的方法是什么
236
2022-10-21
[Docker Practical learning] 01 The basic concepts of docker
???? The content of docker’s preliminary learning
Basic concepts of DockerInstall the DockerDocker runs Hello World
The background of the docker
????link : Docker Core technology previewBefore learning docker, I first learned about his historical background, which is of great help to my study.Understanding the history can more quickly understand the direction of the development of technology and the essence of the way to useThis article introduces the technological development process of Docker, the core technologies in Docker and the related sub-projects, which is a good introduction.
Basic concepts of Docker
Container technology
The core ideas : Build once, Run anywhere.Build,Ship and RunDocker basic LXC developed by the go language.Open source licenses :Apache2.0
Mirror container repository
images
Similar to a virtual machine images,Read-only template-independent file systemCan create containerBuild based on DockerFileIt can be downloaded from Docker Hub(Docker Hub is similar to GitHub)
container
Similar to a virtual machine,can start stop delete …Isolated from each other but not as effective as virtual machinesControl Groups and Namespace Implement isolation
CGroups: Access restrictions on CPU, memory, disk, and other resourcesNamespaces :Provides isolation of system resources: processes, networks, file systems, and so on.
repository
It’s very similar to Git and GitHub that we learned about before.Registry can save images .Docker Hub It’s so like a Git Hub.Docker supports push and poll like Git。
Install the docker
Docker have two types Community Edition(CE) and Enterprise Edition(EE), i select CE install on Ubuntu18.04
Update softwaresudo apt-get updateapt-get some toolssudo apt-get -y install \ apt-transport-\ ca-certificates \ curl \ software-properties-commonChina’s special network adds a mirror image of aliyuncurl -fsSL | sudo apt-key add -sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"install docker-enginesudo apt-cache madison docker-engine sudo apt-get remove docker docker-engine docker.io sudo apt-get install docker-ceCheck to see if the right version is availableremove the docker if out server already has a dockerFinally, the official installation of docker-cewe can check the docker versiondocker versionChina USES mirror access to speed upedit /etc/docker/daemon.jsonsudo vi /etc/docker/daemon.json
{ "registry-mirrors": ["service docker restart
Try helloword with docker
docker container run hello-world
run that command the docker will run and print hello world in terminal
conclusion
???? The content of docker’s preliminary learning
Basic concepts of DockerInstall the DockerDocker runs Hello World
This is the first time for me to record my study notes in English.I’m trying really hard and I hope it’s a good startI learn docker on this platformshiyanlou.com It’s not an AD but it works really well in Chinese The experiment costs one RMB per hour.But????play docker with me is freeIf you have any questions, please contact me.
contact ????
My github is @HANXU2018
thanks
2020/5/18
????????????
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~