非常教程

Docker 17参考手册

机器 | Machine

谷歌电脑引擎 | Google Compute Engine (Machine)

在Google计算引擎你将需要一个谷歌帐户和一个项目ID。见https://Cloud.google.com/Computer/docs/Projects有关项目的详细信息。

全权证书

Google驱动程序使用应用程序默认凭据获取授权凭证,用于调用GoogleAPI。

所以如果docker-machine如果从GCE主机使用,则身份验证将通过内置服务帐户自动进行.。否则,安装gCloud并通过OAuth2进程gcloud auth login...

若要创建计算机实例,请指定--driver google

$ gcloud auth login
$ docker-machine create --driver google --google-project PROJECT_ID vm01
$ docker-machine create --driver google \
  --google-project PROJECT_ID \
  --google-zone us-central1-a \
  --google-machine-type f1-micro \
  vm02

备选方案

  • --google-project*所需启动实例时要使用的项目ID。
  • --google-zone启动实例的区域。
  • --google-machine-type*实例类型。
  • --google-machine-image::要实例化的基本VM映像的绝对URL。
  • --google-username用于实例的用户名。
  • --google-scopesOAuth 2.0访问GoogleAPI的范围。见Google计算引擎DOC...
  • --google-disk-size实例的磁盘大小。
  • --google-disk-type实例的磁盘类型。
  • --google-address实例的静态外部IP%28名称或IP%29。
  • --google-network*指定提供VM的网络。
  • --google-subnetwork*指定提供VM的子网络。
  • --google-preemptible::实例抢占性。
  • --google-tags实例标记%28逗号-分隔%29。
  • --google-use-internal-ip:当在创建过程中使用此选项时,它将使坞机使用内部而不是公共的nated IP。标志是持久的,因为用它创建的机器保留了IP。它对于管理来自同一网络上另一台机器的码头机器很有用,例如,在部署SEAM时。
  • --google-use-internal-ip-only当在创建过程中使用此选项时,将不会为新VM分配公共IP地址。只有在主机运行时才有用。docker-machine位于GoogleCloud基础结构中,则为,docker-machine无法到达VM以提供Docker守护进程。这面旗帜的存在意味着--google-use-internal-ip...
  • --google-use-existing不要创建新的VM,使用现有的VM。当您想在您自己创建的VM上提供Docker时,这是非常有用的,可能是因为它使用了这个驱动程序不支持的CREATE选项。

GCE驱动程序将使用ubuntu-1510-wily-v20151114实例图像,除非另有指定。若要获取运行的图像URL列表,请运行:

gcloud compute images list --uri

Google计算引擎支持图像族一个图像家族就像一个图像别名,它总是指向家族中的最新图像。若要从图像系列创建实例,请设置--google-machine-image家族的网址。

下面的命令将显示图像以及它们属于%28(如果有%29)的家庭:

gcloud compute images list

<PROJECT><FAMILY>在下面的模板中。

https://www.googleapis.com/compute/v1/projects/<PROJECT>/global/images/family/<FAMILY>

例如,要从最新的Ubuntu16LTS映像创建实例,请指定https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts...

环境变量和默认值

CLI option

Environment variable

Default

--google-project

GOOGLE_PROJECT

-

--google-zone

GOOGLE_ZONE

us-central1-a

--google-machine-type

GOOGLE_MACHINE_TYPE

f1-standard-1

--google-machine-image

GOOGLE_MACHINE_IMAGE

ubuntu-1510-wily-v20151114

--google-username

GOOGLE_USERNAME

docker-user

--google-scopes

GOOGLE_SCOPES

devstorage.read_only,logging.write

--google-disk-size

GOOGLE_DISK_SIZE

10

--google-disk-type

GOOGLE_DISK_TYPE

pd-standard

--google-address

GOOGLE_ADDRESS

-

--google-network

GOOGLE_NETWORK

default

--google-subnetwork

GOOGLE_SUBNETWORK

-

--google-preemptible

GOOGLE_PREEMPTIBLE

-

--google-tags

GOOGLE_TAGS

-

--google-use-internal-ip

GOOGLE_USE_INTERNAL_IP

-

--google-use-existing

GOOGLE_USE_EXISTING

-

机,,,Google计算引擎,,,司机

 © 2017 Docker, Inc.

根据ApacheLicense,版本2.0获得许可。

Docker和Docker标志是Docker公司在美国和/或其他国家的商标或注册商标。

Docker,Inc.和其他各方也可以在这里使用的其他术语中拥有商标权。

https://docs.docker.com/Machine/Drips/GCE/

机器 | Machine相关

1.亚马逊网络服务(机器) | Amazon Web Services (Machine)
2.数字海洋(机器) | Digital Ocean (Machine)
3.docker机器活动 | docker-machine active
4.docker机器配置 | docker-machine config
5.docker机器创建 | docker-machine create
6.docker-machine env
7.docker机器助手 | docker-machine help
8.docker机器检查 | docker-machine inspect
9.docker-machine ip
10.docker-machine kill
11.docker-machine ls
12.docker机器规定 | docker-machine provision
13.docker机器再生 | docker-machine regenerate-certs
14.docker机器重启 | docker-machine restart
15.docker-machine rm
16.docker-machine scp
17.docker-machine ssh
18.docker-machine start
19.docker-machine status
20.docker-machine stop
21.docker-machine upgrade
22.docker-machine url
23.驱动程序选项和操作系统默认值 | Driver options and operating system defaults (Machine)
24.驱动总览 | Drivers overview (Machine)
25.Exoscale (Machine)
26.通用 | Generic (Machine)
27.开始使用本地VM | Get started with a local VM (Machine)
28.IBM Softlayer (Machine)
29.安装机器 | Install Machine
30.机器 | Machine
31.机器CLI概述 | Machine CLI overview
32.机器命令行完成 | Machine command-line completion
33.机器概念和帮助 | Machine concepts and help
34.机器总览 | Machine overview
35.Microsoft Azure (Machine)
36.Microsoft Hyper-V (Machine)
37.从Boot2Docker迁移到Machine | Migrate from Boot2Docker to Machine
38.OpenStack (Machine)
39.Oracle VirtualBox (Machine)
40.配置AWS EC2实例(机器) | Provision AWS EC2 instances (Machine)
41.提供数字海洋 | Provision Digital Ocean Droplets (Machine)
42.在云中配置主机 | Provision hosts in the cloud (Machine)
43.Rackspace (Machine)
44.VMware Fusion (Machine)
45.VMware vCloud Air (Machine)
46.VMware vSphere (Machine)
Docker 17

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。

主页 https://docker.com/
源码 https://github.com/docker/docker
版本 17
发布版本 17.06