400 028 6601

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

DockerLight-weightvirtualization-forclass1

Docker[1] is a tool designed to make it easier to create, deploy, and run applications by using containers.

10年积累的网站设计、成都网站制作经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站设计后付款的网站建设流程,更有西乡塘免费网站建设让你可以放心的选择与我们合作。

In this class , i will introduce the Virtual Maching used in Docker Class.


In this docker VM needed two network adapter, (1) NAT (2) Host-only

this command could need some time to get the docker images from the internet .
After when you fininshed , you can use this command to check the docker images in your VM

docker images

in this command , you can see the Repository (Let's use this example)
(1)chusiang means the docker account
(2)takaojs1607 means the image name

And you can see that the IMAGED ID like 90ebc6376878

Let start docker !

docker run -it chusiang/takojs1607 bash
-i means interactive
-t means terminal
bash ---> command

the basic command for first Class

  1. docker ps
    it can check what the docker process run on this system
    ex: the container id is f0eba9cc4a7
  2. `docker stop containers ID
    ex: docker stop f0e
  3. docker ps -a
    -a meanes all , you can see all the docker process
  4. docker start containers ID
    ex: docker start f0e
  5. docker attach containers ID
    ex: docker attach f0e
  6. docker rm containers ID
    you can use this command to remove this container !
    But !! not the docker images !
  7. docker rm -f $(docker ps -q -a)

    this command can kill the docker container by force whatever the docker process start or stop
    -f means force
    -a means all

Reference
[1]https://www.docker.com


网页标题:DockerLight-weightvirtualization-forclass1
文章地址:http://mbwzsj.com/article/poiidd.html

其他资讯

让你的专属顾问为你服务