[Docker Practical learning] 01 The basic concepts of docker

???? The content of docker’s preliminary learning

  1. Basic concepts of Docker
  2. Install the Docker
  3. Dgit教程ocker runs Hello World

The background of the docker

  • ​​????link : Docker Core tec云计算分为哪些类型hnology preview​​
  • Before ledocker命令arning docker, Igithub永久回家地址 firgithubst learned about hisgithub打不开 historical background, which is of great help to my study.
  • Underdocker面试题standing云计算是什么意思 the history can more quickly understand the direction of the development of technology and the essence of the way to use
  • This article introduces the technological development processdocker和虚拟机的区别 of Dodockercker, the core technologies in Docker and the related sudockerb-projects, which is a good introduction.

B云计算机asic concepts of Docker

Containerdocker technology

  • The core igiti轮胎deas : Build once, Run anywhere.
  • Buildgithub,Ship and Run
  • Docker basic LXC developed by the gogit language.
  • Open source licenses :Apache2.0

Mirror container repositorygit教程

  • images

  • Sigit教程milar to a virtual machine images,Read-only template-independent file system
  • Can credocker安装部署ate container
  • Buildgithub开放私库 based on DockerFigithub开放私库le
  • It can be downloaded from Docker Hub云计算分为哪些类型(Docker Hub is similar to GitHub)
  • contgithub是干什么的ainer

  • Similar to a virtual machine,can start stop delete …
  • Isogithub中文官网网页lated from each other but not as effective as virtual mach云计算定义ines
  • Control Groups and Namespace Implement isolation
  • CGroups: Accgit命令ess restrictgitlabions on CPU, memodocker容器ry, disk, and other resources
  • Namespaces :Provides isolatgithub中文社区ion of system resources: processes, networgithub中文官网网页ks, file systems, and so on.
  • repository

  • It’s very similar to Git and GitHub that we learned agithub官网bout before.github
  • 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
  1. Update software

    sudo apt-get update
  2. apt-get some tools

    sudo apt-get -y install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
  3. Chin云计算是什a’s special network adds a mirror image of aliyun

    curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
  4. install docker-engine

    sudo apt-cache madison docker-engine
    sudo apt-get remove docker docker-engine docker.io
    sudo apt-get install docker-ce
    • Check to see if the right version is available
    • remove the dockgitier if out server alre云计算最简单解释agithub下载dy has a docker
    • Finally, the official installadocker菜鸟教程tion of docker-ce
  5. we can chgitieck th云计算技术应用专业e docker version

    docker version
  6. China USES mirror access to speed up

    1. edit /etc/docker/daemon.json
      ​​​sudo vi /etc/docker/daemon.json​
{
"registry-mirrors": ["https://n6syp70m.mirror.aliyuncs.com"]
}
  1. sgithubudo service docker restart

Try helloword with docgithubker

​docker container run hgithubello-world​

run that command the docdockerhubke云计算是什么意思r will run and print hello world in terminalgithub下载

conclu云计算与物联网的关系sion云计算最简单解释

???? The content of docker’s preliminary learning

  1. Basic congitcepts of Docker
  2. Install the Docker
  3. Docker runs Hello World
  • This is thedocker常用命令 first time for megit教程 to record my study notes in English.
  • I’m云计算是什么意思 trying really hargit教程d and I hope it’s a good start
  • I learn docker on this pdocker容器latform​​www.shiyanlou.com​​​ It’s not an AD but it works really wedocker安装部署ll in Chinese The experiment costs one RMB per hour.But​​?云计算机???play docker with me​​ is free
  • If you have any questions, please contact me.

contdocker命令actgit命令 ????

My github is ​​@HANXU2018​​

thanks

2giti020/5/18

????????????