Built-in docker for Mac supporting Swarm and Kubernetes

Docker CE (Docker for short) is an easy-to-use container tool that brings users an independent and hardware-independent experience. Docker for Mac does not support Kubernetes from the beginning. Let's take a look at its brief history: Docker originated from DotCloud, and did not support Windows and Mac at the beginning. It can only run on Linux.

Why is it important to developers?


Virtual machine

In the beginning, if Mac or Linux users want to use container technology, they need to install virtual machine tools such as VirtualBox or VMWare Workstation/Player on the Linux host and set up a shared directory. In order to use the unified CLI tool, users have to use Hashicorp's Vagrant.

scenes to be used:

  • This method is an outdated technology and is not recommended.

Docker Machine

Docker Machine is the second step of evolution. Using boot2docker image to deploy virtual machines in a local or remote environment and provide writable disk space is also a big step towards ease of use. Once the SSL-certified VM is generated, the Docker client can access it through TCP/IP tools, and can support clusters composed of multiple Docker versions at the same time.

advantage:

  • The same host supports multiple container backends

  • Only supports Linux

  • Use boot2docker image

  • Modular support plug-ins of various cloud providers

Disadvantages:

  • Command line operation

  • Does not support Windows and Mac

scenes to be used:

  • To use Windows 7 or Windows 10 Home, a cluster needs to be run locally, or a cluster needs to be operated and maintained in the cloud.

Docker for Mac/Windows

Docker Machine requires too much manual operation (via docker-machine env), and sometimes needs to be rebuilt in order to adopt TLS. Docker for Mac/Windows (DfM for short) is based on the original intention of benefiting the majority of users, with built-in UI and menu support, and launched a beta version with limited functions. At the beginning, it was mainly used by Twitter.

advantage:

  • Easy to install

  • Automatic configuration command line

  • Graphical interface configuration

  • One-click start and stop operations

Disadvantages:

  • Poor performance when sharing volumes

  • High energy consumption reduces battery life

  • Support Windows 10 pro or enterprise

scenes to be used:

  • Available, but you need to install Docker Swarm or Kubernetes locally.

Minikube

Minikube is very similar to docker-machine. It also relies on boot2docker. The original intention is to create a single-node Kubernetes cluster with a Docker host that can be used for development.

advantage:

  • Local environment is easy to access

  • Kubernetes available

Disadvantages:

  • Kubernetes consumes a lot of power when idle

  • It feels very similar to docker-machine

  • The built-in Docker version is seriously behind

  • Some functions are not yet supported, such as RBAC (role-based authentication control)

  • Need to use minikube start/stop

scenes to be used:

  • You need a local Kubernetes scene but don't need to pay attention to the Docker version.

Guess you like

Origin blog.csdn.net/yjk13703623757/article/details/108327949