Azure Docker:在Azure上使用Docker

记事

公式文件

Azure平台的Docker设置和前提条件| Docker文档

为了更有效地处理上述文件,以下是摘要:

使用的词汇

    • Stable channel:

 

    Edge channel:

容器管理工具

Azure提供了三种多个Docker主机(集群)管理工具,包括:

    • Docker Swarm:

 

    • Mesosphere DC/OS:

 

    Kubernetes:

服务主体

    Service Principal: Azure APIを呼び出すために使われる
    在本地环境下载docker4x/create-sp-azure的最新版本。
docker pull docker4x/create-sp-azure:latest
    使用以下参数运行sp-azure。
$ docker run -ti docker4x/create-sp-azure sp-name [rg-name rg-region]
    • sp-name: 認証アプリの名前。重要じゃない。組織でわかる名前にする

 

    • rg-name: 新しいリソースグループの名前。

 

    • rg-region: Azureリージョン/ロケーションの名前

リージョン名はこちらから Docker for Azure frequently asked questions (FAQ) | Docker Documentation

具体例子

$ docker run -ti docker4x/create-sp-azure sp1 swarm1 japaneast

执行上述操作时,会要求在web浏览器中登录,然后输入显示的代码。

info:    Executing command login
\info:    To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code XXXXXXXXX to authenticate.

SSH密钥

在进行自定义部署之前,需要提供SSH的公钥。

ssh-keygen -t rsa -b 2048

参考︰在 Azure 上为 Linux 虚拟机创建和使用 SSH 密钥对 | 微软文档

在Azure上进行自定义部署

    Azureのテンプレートを使ってカスタムデプロイすると、自動で起動する

在上述的情况下,顺利站了起来。

请以中文的方式对下面的句子进行改写,只需要一种选项:

Please paraphrase the following natively in Chinese, only need one option:

– “I went to the store to buy some groceries.”

广告
将在 10 秒后关闭
bannerAds