佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > 在Google Container Engine上申請創(chuàng)建Docker容器

在Google Container Engine上申請創(chuàng)建Docker容器

熱門標(biāo)簽:服務(wù)外包 地方門戶網(wǎng)站 網(wǎng)站排名優(yōu)化 呼叫中心市場需求 AI電銷 Linux服務(wù)器 鐵路電話系統(tǒng) 百度競價排名

(1)要申請一個Google賬戶。
(2)激活Google賬單,即綁定支付信用卡,為使用Google的服務(wù)買單。激活過程中為了驗證信用卡是否可用,需要支付1美元的費用。
激活支付地址:https://console.developers.google.com/billing?_ga=1.62759852.1080048005.1441690490
支付激活后,可以看到能夠使用的一些服務(wù),同時看到可以免費使用60天。

(3)激活Google API
激活后,可以使用如下兩種服務(wù):
Google Container Engine API
Google Compute Engine and associated APIs
創(chuàng)建一個gerry-test-proj工程:

然后點擊建立,會自動跳轉(zhuǎn)到當(dāng)前創(chuàng)建好的工程中:

(4)安裝gcloud

到Google Cloud SDK上可以下載到各個版本的客戶端:https://cloud.google.com/sdk/#windows
安裝方法也有說明。安裝完成后,可以看下gcloud的使用方法:

復(fù)制代碼
代碼如下:

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. 

然后使用gcloud登陸GCP賬戶(即,完成認(rèn)證):

后記
越來越多的公司開始使用容器來構(gòu)建應(yīng)用,它可以方便地實現(xiàn)擴(kuò)展、復(fù)制以及升級。這個新服務(wù)提供了一種全新的途徑來管理大量容器,免除了涉及到多容器業(yè)務(wù)流操作的大量底層工作。
Google于2014年11月首次對外發(fā)布了容器引擎,不過只是預(yù)覽版本。隨著這次商業(yè)性的發(fā)布,Google確保該服務(wù)已經(jīng)具備好應(yīng)對生產(chǎn)環(huán)境的各種條件,并承諾99.95%的正常運行時間。
另外,定價也已經(jīng)確定。少于6個節(jié)點的用戶可以免費使用,若需管理多于6個節(jié)點則需為每個集群支付$0.15/小時的費用。
Google自身早已使用容器來運行Internet服務(wù),例如搜索和郵箱服務(wù)。
通過容器,公司可以讓每個組件包含一部分應(yīng)用,以模塊化的方式構(gòu)建它們的應(yīng)用,這就是廣為人知的微服務(wù)架構(gòu)。當(dāng)應(yīng)用需要更新時,一個新的容器可以輕易地實現(xiàn)替換,以減小對操作的影響。
容器也為DevOps形式的軟件開發(fā)創(chuàng)造了條件。這種情況下,開發(fā)者在開發(fā)應(yīng)用時快速地迭代,通過在容器中打包,每個獨立的組件都可以輕松地進(jìn)行測試。
通過這個服務(wù),用戶在單次操作中,完成對多容器復(fù)雜應(yīng)用的部署。GCE會記錄操作日志,以確保每個容器的正確運行,它也提供一條簡易的途徑,通過增加額外的處理器或內(nèi)存,來調(diào)整集群的大小。

標(biāo)簽:湘潭 仙桃 崇左 黃山 湖南 銅川 蘭州 衡水

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《在Google Container Engine上申請創(chuàng)建Docker容器》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    宜兴市| 长顺县| 自治县| 汽车| 科尔| 黄大仙区| 陵川县| 大足县| 侯马市| 白河县| 桃源县| 连山| 惠州市| 北安市| 贵港市| 时尚| 响水县| 修水县| 东台市| 寿宁县| 三明市| 阳新县| 上杭县| 清远市| 东阳市| 准格尔旗| 方正县| 连城县| 吉安市| 怀远县| 陵川县| 新巴尔虎左旗| 舒兰市| 宣武区| 都昌县| 柯坪县| 胶州市| 白银市| 嘉鱼县| 万宁市| 平果县|