加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

在Google Container Engine上申请创建Docker容器

发布时间:2021-07-15 14:53:52 所属栏目:经验 来源:互联网
导读:副标题#e# (1)要申请一个Google账户。 (2)激活Google账单,即绑定支付信用卡,为使用Google的服务买单。激活过程中为了验证信用卡是否可用,需要支付1美元的费用。 激活支付地址:https://console.developers.google.com/billing?_ga=1.62759852.108004
副标题[/!--empirenews.page--]

(1)要申请一个Google账户。
(2)激活Google账单,即绑定支付信用卡,为使用Google的服务买单。激活过程中为了验证信用卡是否可用,需要支付1美元的费用。
激活支付地址:https://console.developers.google.com/billing?_ga=1.62759852.1080048005.1441690490
支付激活后,可以看到能够使用的一些服务,同时看到可以免费使用60天。

2016316103057021.png (1436×599)

(3)激活Google API
激活后,可以使用如下两种服务:
Google Container Engine API
Google Compute Engine and associated APIs
创建一个gerry-test-proj工程:

2016316103118524.png (931×347)

然后点击建立,会自动跳转到当前创建好的工程中:

2016316103136556.png (1439×669)

(4)安装gcloud

到Google Cloud SDK上可以下载到各个版本的客户端:
安装方法也有说明。安装完成后,可以看下gcloud的使用方法:

复制代码

代码如下:


root@gerryyang:~# gcloud -h
Usage: gcloud [optional flags] <group | command>
group may be auth | components | compute | config | container |
deployment-manager | dns | sql | topic
command may be docker | feedback | help | info | init | version

 
The *gcloud* CLI manages authentication, local configuration, developer 
workflow, and interactions with the Google Cloud Platform APIs. 
 
optional flags: 
  --account ACCOUNT      Google Cloud Platform user account to use for 
                         invocation. 
  --format FORMAT        Format for printed output. 
  --help                 Display detailed help. 
  --log-http LOG_HTTP    Logs all HTTP server requests and responses to stderr. 
                         (true/false) 
  --project PROJECT_ID   Google Cloud Platform project ID to use for this 
                         invocation. 
  --quiet, -q            Disable all interactive prompts. 
  --trace-token TRACE_TOKEN 
                         Token used to route traces of service requests for 
                         investigation of issues. 
  --user-output-enabled USER_OUTPUT_ENABLED 
                         Control whether user intended output is printed to the 
                         console.  (true/false) 
  --verbosity VERBOSITY  Override the default verbosity for this command.  This 
                         must be a standard logging verbosity level: [debug, 
                         info, warning, error, critical, none] (Default: 
                         [warning]). 
  -h                     Print a summary help and exit. 
  -v, --version          Print version information. 
 
command groups: 
  auth                   Manage oauth2 credentials for the Google Cloud SDK. 
  components             List, install, update, or remove Google Cloud SDK 
                         components or packages. 
  compute                Read and manipulate Google Compute Engine resources. 
  config                 View and edit Google Cloud SDK properties. 
  container              Deploy and manage clusters of machines for running 
                         containers. 
  deployment-manager     Manage deployments of cloud resources. 
  dns                    Manage your Cloud DNS managed-zones and record-sets. 
  sql                    Manage Cloud SQL databases. 
  topic                  gcloud supplementary help. 
 
commands: 
  docker                 Provides the docker CLI access to the Google Container 
                         Registry. 
  feedback               Provide feedback to the Google Cloud SDK team. 
  help                   Prints detailed help messages for the specified 
                         commands. 
  info                   Display information about the current gcloud 
                         environment. 
  init                   Create and initialize a gcloud workspace in the current 
                         directory. 
  version                Print version information for Cloud SDK components. 

(编辑:PHP编程网 - 黄冈站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读