Mastering Docker, Chapter 6: Docker Machine

Installation

Use the curl command to download and install Docker Machine. You will need to change the permission to execute

Using Docker Machine

We will learn how to use Docker Machine to deploy docker hosts on various machines.

Local Machine

Use create --drive switch to install a docker host on either Virtualbox or VmWareFusion.

Cloud environment

The author explains how to deploy Docker on AWS (Amazon Web Services).

Docker Machine commands

  • active: shows the current active Docker host
  • config: shows the config of the active host
  • env: shows the environment variables
  • inspect: shows a lot of information on the current host
  • ip: shows the ip address 
  • kill: stops the machine
  • ls: show all running hosts you have created with Docker Machine
  • restart: restarts the machine
  • rm: removes a machine
  • scp: copies files from your local machine to a Docker host
  • ssh: allows you to login to your Docker host
  • start: starts a Docker host
  • stop: stops a Docker host
  • upgrade: upgrades the version of Docker running on the host

TLS

Docker allows you to use TLS to run machines over.  You can use your own certificates or use the ones supplied with Docker


Comments

Popular posts from this blog

Go Programming Blueprints, Chapter 2, Adding User Accounts

Successful Big Game Hunting Chapter 10