您好,登錄后才能下訂單哦!
本篇內(nèi)容主要講解“怎么在Google Container Engine上申請(qǐng)創(chuàng)建Docker容器 ”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“怎么在Google Container Engine上申請(qǐng)創(chuàng)建Docker容器 ”吧!
(1)要申請(qǐng)一個(gè)Google賬戶(hù)。
(2)激活Google賬單,即綁定支付信用卡,為使用Google的服務(wù)買(mǎi)單。激活過(guò)程中為了驗(yàn)證信用卡是否可用,需要支付1美元的費(fèi)用。
激活支付地址:https://console.developers.google.com/billing?_ga=1.62759852.1080048005.1441690490
支付激活后,可以看到能夠使用的一些服務(wù),同時(shí)看到可以免費(fèi)使用60天。
(3)激活Google API
激活后,可以使用如下兩種服務(wù):
Google Container Engine API
Google Compute Engine and associated APIs
創(chuàng)建一個(gè)gerry-test-proj工程:
然后點(diǎn)擊建立,會(huì)自動(dòng)跳轉(zhuǎn)到當(dāng)前創(chuàng)建好的工程中:
(4)安裝gcloud
到Google Cloud SDK上可以下載到各個(gè)版本的客戶(hù)端:https://cloud.google.com/sdk/#windows
安裝方法也有說(shuō)明。安裝完成后,可以看下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賬戶(hù)(即,完成認(rèn)證):
到此,相信大家對(duì)“怎么在Google Container Engine上申請(qǐng)創(chuàng)建Docker容器 ”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢(xún),關(guān)注我們,繼續(xù)學(xué)習(xí)!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。