Home  >  Q&A  >  body text

关于Docker的问题

看了一遍极客学院上关于Docker的视频: http://www.jikexueyuan.com/course/docker/

视频一共有3个人讲的版本,视频的特点是一上来直接讲这个东西该怎么用,偶尔一些地方开头会稍微讲一下这个东西是什么,但关联的概念一般不怎么解释。

有基础的情况下,可能没什么问题,多个人讲不同的版本版本还可以消除各自的盲点。 但是如果完全一点概念都没有的情况下,听完会有些疑问和混淆,大家帮解释一下:

1、视频中讲Docker Machine 和Docker Compose 和 Docker Swarm 都是容器管理工具,那么究竟该用哪个?还是它们有各自不同的管理职能?
2、Kubernetes 也是容器管理工具,那么它和上面三个相比,有什么特点?该用谁?
3、CaaS、PaaS、laaS各自的含义是什么?
4、有什么其他Docker的教程推荐,博客,视频都可以。

巴扎黑巴扎黑2758 days ago734

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-24 09:12:19

    Compose is used to organize and orchestrate a set of Docker containers. For example, you have built several Docker images, including HAProxy, Nginx, MySQL, and PHP. However, these are just a mess. You can only run these containers one by one, and you must manually ensure the coordination of the parameters of each container, such as the corresponding TCP port. With Compose, you can record the configuration of the entire cluster in a file. Whether it is a development, testing or production environment, you can build an identical cluster directly. docker-compose up

    Swarm can make the Docker cluster transparent, making the cluster look like a virtual whole. Swarm uses the standard Docker API interface, and various forms of Docker clients can communicate directly with Swarm. From the perspective of the Docker client, it is no different from a single container.

    Machine has nothing to say, it is just a one-click Bash script to install Docker, which is convenient for setting up Docker environments on different operating systems.

    It is recommended that you read "Docker - Containers and Container Cloud".

    reply
    0
  • 高洛峰

    高洛峰2017-04-24 09:12:19

    Docker Machine: Used to install Docker Engine to other machines in the cluster
    Docker Compose: Used to code scripts to run build images and run containers to achieve one-click build and deployment
    Docker Swarm: Used to create docker clusters to achieve multi-machine docker Can be in the same cluster environment

    The above three can be used in combination

    Kubernetes: It is relatively comprehensive and can do the above three things together

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-24 09:12:19

    Online e-book, basic introduction, can solve the basic understanding and use of docker, which is easier to use than video teaching

    reply
    0
  • Cancelreply