温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2021-09-04 22:56:04 来源:亿速云 阅读:174 作者:chen 栏目:建站服务器

本篇内容主要讲解“怎么在Google Container Engine上申请创建Docker容器 ”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么在Google Container Engine上申请创建Docker容器 ”吧!

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

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

然后点击建立,会自动跳转到当前创建好的工程中:
怎么在Google Container Engine上申请创建Docker容器

(4)安装gcloud

到Google Cloud SDK上可以下载到各个版本的客户端:https://cloud.google.com/sdk/#windows
安装方法也有说明。安装完成后,可以看下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 oauth3 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. 

然后使用gcloud登陆GCP账户(即,完成认证):
怎么在Google Container Engine上申请创建Docker容器

到此,相信大家对“怎么在Google Container Engine上申请创建Docker容器 ”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI