您好,登錄后才能下訂單哦!
本篇內容主要講解“怎么在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天。
(3)激活Google API
激活后,可以使用如下兩種服務:
Google Container Engine API
Google Compute Engine and associated APIs
創建一個gerry-test-proj工程:
然后點擊建立,會自動跳轉到當前創建好的工程中:
(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容器 ”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。