SlideShare ist ein Scribd-Unternehmen logo
1 von 31
© 2016 IBM Corporation
從 DockerHub 擴展
Bluemix Catalog 中的服務
Joseph Chang
Cloud Tech Sales
IBM Cloud, TW
Document number
(From DockerHub to Bluemix Catalog)
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
從 Bluemix Catalog 佈署
Runtimes/Services 非常快速容易
, 但有時我要的服務不在 Catalog
……上 .
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Docker Hub 上有數
千個由軟體商或社群
提供的 image, 可以
讓您自由擴充
Bluemix 的私人目錄
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
從 Docker Hub 下載 image
可快速擴充 Bluemix Catalog
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Docker Hub Bluemix
How it works? 只要一行指令
bluemix ic cpi <image on docker> registry.ng.bluemix.net/<myreg>/<image on bluemix>:<ver>
(2) 執行 bluemix ic
cpi 指令 , image 就會
出現在 Bluemix 目錄
(1) 安裝 bluemix
command line, 並執
行 初始化設定
( one time job)
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Docker Hub Bluemix
環境需求
(1) 需要
https://hub.docker.
com
帳號密碼
(2) 需要
https://www.blue
mix.net
帳號密碼
(3) 需要安裝
docker command
line 工具
(4) 需要安裝 bluemix
command line 及 ibm
container plug-in 工具
如果 需要安裝說明
,請參考附錄
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
執行步驟
1. 連線到 https://hub.docker.com/explore 搜尋所需的 image
在此我們以 Nginx 為例
作說明
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
執行步驟
由 docker pull command
可查到正確的
imange 名稱
2. 點選所要的 image, 檢視 Docker Pull Command
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
執行步驟
bluemix ic cpi nginx registry.ng.bluemix.net/<Namespace >/nginx:<ver>
如果忘了自已設的
Namespace 名稱 ,
可用 cf ic info 查詢
cf ic cpi nginx registry.ng.bluemix.net/<Namespace>/nginx:<ver>
or
如果用的是舊版工具
CF Command line
只要學會 cpi 指令
, 就一切搞定
註 : cpi 是 copy image 的意思
3. 開啟 bluemix 命令列 , 做變更語言設定及登入
export LANG=en_US
bluemix login
4. 最後執行下列命令 , 就可將 image 載入到 Bluemix Catalog
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
範例 1 – Nginx ( 完整操作 )
cf ic cpi 指令執行 參考結果
Taiwan 的使用者請將語
言設定為 en_US 或
zh_Hant
否則 cf ic 會出現錯誤
執行 cf ic …….
亦可用 bluemix ic …..
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx –list images
執行成功後至 Catalog
Container 查看 nginx 圖示
是否已建立
( 您必須登入 bluemix UI)
bluemix ic images 指令可
以顯示 你所擁有的 image
接下來請 點選 nginx 圖示
以建立 container
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx- create container
1. 點選 Scalable
Group
以方便未來做 Scale
out
2. 指定 group name,
host name 會同時被
指定
3. 指定 instance 數
量
4. 指定 Http port
=> 80
Scalabile Group 不佔
用固定的 private IP
5. 按 CREATE
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx- container is running
點選 Routes 以檢視
網站
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx- check website
Nginx 執行中
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx- 用 bluemix ic comand Line 檢視
bluemix ic ps 注意 : 這裡可以取得
container id
bluemix ic exec <container id> whoami
注意 : 你的身份是
container root
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Nginx- bluemix ic comand Line
bluemix ic exec <container id> ls -al
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
  範例 2-- Jboss
bluemix ic cpi jboss/wildfly
registry.ng.bluemix.net/<myreg>/jboss-wildfly:new
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
附錄
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(1) 註冊 Docker 帳號
如果你還沒有 docker 帳號 ,
請在 https://hub.docker.com
註冊,才能有下載權限
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(2) 註冊 Bluemix 帳號
如果你還沒有 bluemix 帳號 ,
請在 https://www.bluemix.net
註冊
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(3) Install Docker CLI
 如尚未安裝 Docker 或需要更新 ,請下載 及安裝 1.10.0. .
– OS X https
://github.com/docker/toolbox/releases/download/v1.10.0/DockerToolbox-1.10.0.pkg
– Windows
https://github.com/docker/toolbox/releases/download/v1.10.0/DockerToolbox-
1.10.0.exe
– Linux Refer to the Docker installation documentation to find instructions on how
to install Docker version 1.10.0 on the Linux distribution you use.
可支援的版本包括 Docker version 1.6, 1.7, 1.8, 1.8.1, 1.9.0,
1.9.1, or 1.10.0
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(4) Install Bluemix CLI
 請參考文件說明 : http://clis.ng.bluemix.net/ui/home.html
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(5) Install ibm-containers plug-in
 請參考文件說明 : http://plugins.ng.bluemix.net/ui/repository.html
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(6) bluemix login
 Bluemix 不認得 zh_TW 設定 , 請將 LANG 變數設成 en_US 或 zh_Hant
• 初次登入 bluemix command line, 您需要設定 api end
point
未做 語言設定會看
到此錯誤訊息
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(6) bluemix login
請依指示輸入 e-mail, password, organization, space 等資訊
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(7) bluemix ic 可讓您查看可用命令
27
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
8) bluemix ic init
 如何你是第一 次使用 bluemix ic 命令,請先執行
bluemix ic init
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
(9) bluemix ic info
JosephdeMacBook-Pro:~ joseph$ bluemix ic info
日期 / 時間 : 2016-05-05 11:29:52.883075718 +0800 CST
除錯模式 : false
CCS 主機 /url : https://containers-api.ng.bluemix.net
登錄主機 : https://registry.ng.bluemix.net
Bluemix api 主機 /url : https://api.ng.bluemix.net
Bluemix 組織 : changhs@tw.ibm.com(1f6d3957-c6c6-4804-a8c2-5c7b5d382387)
Bluemix 空間 : 1-sandbox(3fb3e792-dfb1-4fc2-83ab-62435218d59a)
CCS CLI 版本 : 0.9.1
CCS API 版本 : 3.0 2159 2016-05-04T14:28:53
名稱空間 : jjregistry
環境名稱 : prod-dal09-1
儲存器限制 : 無限制
儲存器使用狀況 : 1
儲存器在執行中 : 1
CPU 限制(核心) : 無限制
CPU 使用率(核心) : 1
記憶體限制 (MB) : 2048
記憶體用量 (MB) : 64
浮動 IP 限制 : 2
配置的浮動 IP : 1
連結的公用 IP : 1
******************
* 系統訊息 *
******************
The size of an image reported by IBM Containers may be the virtual size of zero, this is a known issue, it does not affect the running of containers based on the
image. || 建立時間: 2016-03-30 18:48:16
bluemix ic info 指令可檢查您 的 docker 設定是否成功
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
Thank you
© 2014 IBM Corporation
From DockerHub to Bluemix Catalog
31
Take me to Bluemix
Click Here
To learn more about Bluemix Docker Container :
https://console.ng.bluemix.net/docs/containers/container_creating_ov.html#container_getti
ngstarted_container
Thank you

Weitere ähnliche Inhalte

Was ist angesagt?

開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽Will Huang
 
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)Will Huang
 
容器式基礎架構介紹
容器式基礎架構介紹容器式基礎架構介紹
容器式基礎架構介紹Philip Zheng
 
twMVC#26 | Redis資料型別與場景的連結
twMVC#26 | Redis資料型別與場景的連結twMVC#26 | Redis資料型別與場景的連結
twMVC#26 | Redis資料型別與場景的連結twMVC
 
Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Miles Chou
 
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用twMVC#42 Azure DevOps Service Pipeline設計與非正常應用
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用twMVC
 
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型Jackson Tian
 
Windows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWindows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWill Huang
 
Software Engineer Talk
Software Engineer TalkSoftware Engineer Talk
Software Engineer TalkLarry Cai
 
快速上手 Windows Containers 容器技術 (Docker Taipei)
快速上手 Windows Containers 容器技術 (Docker Taipei)快速上手 Windows Containers 容器技術 (Docker Taipei)
快速上手 Windows Containers 容器技術 (Docker Taipei)Will Huang
 
Azure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
Azure Web App on Linux @ Global Azure Bootcamp 2017 TaiwanAzure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
Azure Web App on Linux @ Global Azure Bootcamp 2017 TaiwanWill Huang
 
DAE 新变化介绍
DAE 新变化介绍DAE 新变化介绍
DAE 新变化介绍Tianwei Liu
 
Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践Li Yi
 
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐twMVC#26 | 淺談 ASP.NET Caching 技術與實踐
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐twMVC
 
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)Will Huang
 
AKS 與開發人員體驗 (Kubernetes 大講堂)
AKS 與開發人員體驗 (Kubernetes 大講堂)AKS 與開發人員體驗 (Kubernetes 大講堂)
AKS 與開發人員體驗 (Kubernetes 大講堂)Will Huang
 
Extend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API ServerExtend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API Serverinwin stack
 
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)Will Huang
 
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲ChinaNetCloud
 
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC
 

Was ist angesagt? (20)

開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽
 
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
 
容器式基礎架構介紹
容器式基礎架構介紹容器式基礎架構介紹
容器式基礎架構介紹
 
twMVC#26 | Redis資料型別與場景的連結
twMVC#26 | Redis資料型別與場景的連結twMVC#26 | Redis資料型別與場景的連結
twMVC#26 | Redis資料型別與場景的連結
 
Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊
 
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用twMVC#42 Azure DevOps Service Pipeline設計與非正常應用
twMVC#42 Azure DevOps Service Pipeline設計與非正常應用
 
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
 
Windows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWindows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, Kubernetes
 
Software Engineer Talk
Software Engineer TalkSoftware Engineer Talk
Software Engineer Talk
 
快速上手 Windows Containers 容器技術 (Docker Taipei)
快速上手 Windows Containers 容器技術 (Docker Taipei)快速上手 Windows Containers 容器技術 (Docker Taipei)
快速上手 Windows Containers 容器技術 (Docker Taipei)
 
Azure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
Azure Web App on Linux @ Global Azure Bootcamp 2017 TaiwanAzure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
Azure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
 
DAE 新变化介绍
DAE 新变化介绍DAE 新变化介绍
DAE 新变化介绍
 
Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践
 
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐twMVC#26 | 淺談 ASP.NET Caching 技術與實踐
twMVC#26 | 淺談 ASP.NET Caching 技術與實踐
 
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)
實現 Angular, Docker 與 Kubernetes 持續部署 (NG+2020)
 
AKS 與開發人員體驗 (Kubernetes 大講堂)
AKS 與開發人員體驗 (Kubernetes 大講堂)AKS 與開發人員體驗 (Kubernetes 大講堂)
AKS 與開發人員體驗 (Kubernetes 大講堂)
 
Extend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API ServerExtend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API Server
 
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)
使用 C#/Razor 開發互動式 WebAssembly 網站 (Modern Web 2018)
 
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲
Dev-Ops与Docker的最佳实践 QCon2016 北京站演讲
 
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
 

Ähnlich wie From docker hub to bluemix catalog

Docker open stack
Docker open stackDocker open stack
Docker open stackGuangya Liu
 
Docker容器微服務 x WorkShop
Docker容器微服務 x WorkShopDocker容器微服務 x WorkShop
Docker容器微服務 x WorkShopPhilip Zheng
 
docker intro
docker introdocker intro
docker introkoji lin
 
Docker 最佳实践
Docker 最佳实践Docker 最佳实践
Docker 最佳实践YuLing Liu
 
Bluemix Connect & Compose
Bluemix Connect & ComposeBluemix Connect & Compose
Bluemix Connect & ComposeChang-Yen Huang
 
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作Philip Zheng
 
Docker Compose
Docker ComposeDocker Compose
Docker ComposeMiles Chou
 
用Bluemix DevOps 建立良好的團隊開發與版本控制
用Bluemix DevOps 建立良好的團隊開發與版本控制用Bluemix DevOps 建立良好的團隊開發與版本控制
用Bluemix DevOps 建立良好的團隊開發與版本控制Hsuan-Ju Lin
 
企業導入容器經驗分享與開源技能培養
企業導入容器經驗分享與開源技能培養企業導入容器經驗分享與開源技能培養
企業導入容器經驗分享與開源技能培養Philip Zheng
 
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用Philip Zheng
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中Andrew Wu
 
Bitbucket pipeline CI
Bitbucket pipeline CIBitbucket pipeline CI
Bitbucket pipeline CIZero Huang
 
Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Bo-Yi Wu
 
20150604 docker 新手入門
20150604 docker 新手入門20150604 docker 新手入門
20150604 docker 新手入門azole Lai
 
IBM Bluemix introduction
IBM Bluemix introductionIBM Bluemix introduction
IBM Bluemix introductionJoseph Chang
 
Comboware ComboStack 202105
Comboware ComboStack 202105Comboware ComboStack 202105
Comboware ComboStack 202105Elroy Peng
 
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛Edward Kuo
 

Ähnlich wie From docker hub to bluemix catalog (20)

Docker open stack
Docker open stackDocker open stack
Docker open stack
 
Docker Build
Docker BuildDocker Build
Docker Build
 
Docker容器微服務 x WorkShop
Docker容器微服務 x WorkShopDocker容器微服務 x WorkShop
Docker容器微服務 x WorkShop
 
docker intro
docker introdocker intro
docker intro
 
Docker 最佳实践
Docker 最佳实践Docker 最佳实践
Docker 最佳实践
 
Bluemix Connect & Compose
Bluemix Connect & ComposeBluemix Connect & Compose
Bluemix Connect & Compose
 
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作
 
Docker Compose
Docker ComposeDocker Compose
Docker Compose
 
用Bluemix DevOps 建立良好的團隊開發與版本控制
用Bluemix DevOps 建立良好的團隊開發與版本控制用Bluemix DevOps 建立良好的團隊開發與版本控制
用Bluemix DevOps 建立良好的團隊開發與版本控制
 
企業導入容器經驗分享與開源技能培養
企業導入容器經驗分享與開源技能培養企業導入容器經驗分享與開源技能培養
企業導入容器經驗分享與開源技能培養
 
容器與 Gitlab CI 應用
容器與 Gitlab CI 應用容器與 Gitlab CI 應用
容器與 Gitlab CI 應用
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中
 
Bitbucket pipeline CI
Bitbucket pipeline CIBitbucket pipeline CI
Bitbucket pipeline CI
 
Docker應用
Docker應用Docker應用
Docker應用
 
Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Docker 基礎介紹與實戰
Docker 基礎介紹與實戰
 
6 Bluemix-LoRa application IV
6 Bluemix-LoRa application IV6 Bluemix-LoRa application IV
6 Bluemix-LoRa application IV
 
20150604 docker 新手入門
20150604 docker 新手入門20150604 docker 新手入門
20150604 docker 新手入門
 
IBM Bluemix introduction
IBM Bluemix introductionIBM Bluemix introduction
IBM Bluemix introduction
 
Comboware ComboStack 202105
Comboware ComboStack 202105Comboware ComboStack 202105
Comboware ComboStack 202105
 
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
 

Mehr von Joseph Chang

Investment advisor with bluemix trade off analysis
Investment advisor with bluemix trade off analysisInvestment advisor with bluemix trade off analysis
Investment advisor with bluemix trade off analysisJoseph Chang
 
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configration
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configrationJcconf 2015 Taipei -- Bluemix java liberty -auto-configration
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configrationJoseph Chang
 
Bluemix hadoop beginners Guide part I
Bluemix hadoop beginners Guide part IBluemix hadoop beginners Guide part I
Bluemix hadoop beginners Guide part IJoseph Chang
 
Create docker image with bluemix dev ops
Create docker image with bluemix dev opsCreate docker image with bluemix dev ops
Create docker image with bluemix dev opsJoseph Chang
 
Connect to blumix docker container with putty
Connect to blumix docker container with puttyConnect to blumix docker container with putty
Connect to blumix docker container with puttyJoseph Chang
 
Run windows vm on bluemix
Run windows vm on bluemixRun windows vm on bluemix
Run windows vm on bluemixJoseph Chang
 
Connect to blumix vm with vnc
Connect to blumix vm with vncConnect to blumix vm with vnc
Connect to blumix vm with vncJoseph Chang
 
Connect to blumix vm with putty
Connect to blumix vm with puttyConnect to blumix vm with putty
Connect to blumix vm with puttyJoseph Chang
 
Using java to access bluemix object storage v2
Using java to access bluemix object storage v2Using java to access bluemix object storage v2
Using java to access bluemix object storage v2Joseph Chang
 
Bluemix iot with intel galileo
Bluemix iot with intel galileoBluemix iot with intel galileo
Bluemix iot with intel galileoJoseph Chang
 

Mehr von Joseph Chang (12)

Investment advisor with bluemix trade off analysis
Investment advisor with bluemix trade off analysisInvestment advisor with bluemix trade off analysis
Investment advisor with bluemix trade off analysis
 
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configration
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configrationJcconf 2015 Taipei -- Bluemix java liberty -auto-configration
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configration
 
Bluemix hadoop beginners Guide part I
Bluemix hadoop beginners Guide part IBluemix hadoop beginners Guide part I
Bluemix hadoop beginners Guide part I
 
Create docker image with bluemix dev ops
Create docker image with bluemix dev opsCreate docker image with bluemix dev ops
Create docker image with bluemix dev ops
 
Connect to blumix docker container with putty
Connect to blumix docker container with puttyConnect to blumix docker container with putty
Connect to blumix docker container with putty
 
Run windows vm on bluemix
Run windows vm on bluemixRun windows vm on bluemix
Run windows vm on bluemix
 
Connect to blumix vm with vnc
Connect to blumix vm with vncConnect to blumix vm with vnc
Connect to blumix vm with vnc
 
Connect to blumix vm with putty
Connect to blumix vm with puttyConnect to blumix vm with putty
Connect to blumix vm with putty
 
Using java to access bluemix object storage v2
Using java to access bluemix object storage v2Using java to access bluemix object storage v2
Using java to access bluemix object storage v2
 
Bluemix iot demo
Bluemix iot demoBluemix iot demo
Bluemix iot demo
 
Bluemix u steam
Bluemix u steamBluemix u steam
Bluemix u steam
 
Bluemix iot with intel galileo
Bluemix iot with intel galileoBluemix iot with intel galileo
Bluemix iot with intel galileo
 

From docker hub to bluemix catalog

  • 1. © 2016 IBM Corporation 從 DockerHub 擴展 Bluemix Catalog 中的服務 Joseph Chang Cloud Tech Sales IBM Cloud, TW Document number (From DockerHub to Bluemix Catalog)
  • 2. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 從 Bluemix Catalog 佈署 Runtimes/Services 非常快速容易 , 但有時我要的服務不在 Catalog ……上 .
  • 3. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Docker Hub 上有數 千個由軟體商或社群 提供的 image, 可以 讓您自由擴充 Bluemix 的私人目錄
  • 4. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 從 Docker Hub 下載 image 可快速擴充 Bluemix Catalog
  • 5. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Docker Hub Bluemix How it works? 只要一行指令 bluemix ic cpi <image on docker> registry.ng.bluemix.net/<myreg>/<image on bluemix>:<ver> (2) 執行 bluemix ic cpi 指令 , image 就會 出現在 Bluemix 目錄 (1) 安裝 bluemix command line, 並執 行 初始化設定 ( one time job)
  • 6. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Docker Hub Bluemix 環境需求 (1) 需要 https://hub.docker. com 帳號密碼 (2) 需要 https://www.blue mix.net 帳號密碼 (3) 需要安裝 docker command line 工具 (4) 需要安裝 bluemix command line 及 ibm container plug-in 工具 如果 需要安裝說明 ,請參考附錄
  • 7. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 執行步驟 1. 連線到 https://hub.docker.com/explore 搜尋所需的 image 在此我們以 Nginx 為例 作說明
  • 8. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 執行步驟 由 docker pull command 可查到正確的 imange 名稱 2. 點選所要的 image, 檢視 Docker Pull Command
  • 9. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 執行步驟 bluemix ic cpi nginx registry.ng.bluemix.net/<Namespace >/nginx:<ver> 如果忘了自已設的 Namespace 名稱 , 可用 cf ic info 查詢 cf ic cpi nginx registry.ng.bluemix.net/<Namespace>/nginx:<ver> or 如果用的是舊版工具 CF Command line 只要學會 cpi 指令 , 就一切搞定 註 : cpi 是 copy image 的意思 3. 開啟 bluemix 命令列 , 做變更語言設定及登入 export LANG=en_US bluemix login 4. 最後執行下列命令 , 就可將 image 載入到 Bluemix Catalog
  • 10. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 範例 1 – Nginx ( 完整操作 ) cf ic cpi 指令執行 參考結果 Taiwan 的使用者請將語 言設定為 en_US 或 zh_Hant 否則 cf ic 會出現錯誤 執行 cf ic ……. 亦可用 bluemix ic …..
  • 11. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx –list images 執行成功後至 Catalog Container 查看 nginx 圖示 是否已建立 ( 您必須登入 bluemix UI) bluemix ic images 指令可 以顯示 你所擁有的 image 接下來請 點選 nginx 圖示 以建立 container
  • 12. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx- create container 1. 點選 Scalable Group 以方便未來做 Scale out 2. 指定 group name, host name 會同時被 指定 3. 指定 instance 數 量 4. 指定 Http port => 80 Scalabile Group 不佔 用固定的 private IP 5. 按 CREATE
  • 13. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx- container is running 點選 Routes 以檢視 網站
  • 14. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx- check website Nginx 執行中
  • 15. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx- 用 bluemix ic comand Line 檢視 bluemix ic ps 注意 : 這裡可以取得 container id bluemix ic exec <container id> whoami 注意 : 你的身份是 container root
  • 16. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Nginx- bluemix ic comand Line bluemix ic exec <container id> ls -al
  • 17. © 2014 IBM Corporation From DockerHub to Bluemix Catalog   範例 2-- Jboss bluemix ic cpi jboss/wildfly registry.ng.bluemix.net/<myreg>/jboss-wildfly:new
  • 18. © 2014 IBM Corporation From DockerHub to Bluemix Catalog
  • 19. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 附錄
  • 20. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (1) 註冊 Docker 帳號 如果你還沒有 docker 帳號 , 請在 https://hub.docker.com 註冊,才能有下載權限
  • 21. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (2) 註冊 Bluemix 帳號 如果你還沒有 bluemix 帳號 , 請在 https://www.bluemix.net 註冊
  • 22. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (3) Install Docker CLI  如尚未安裝 Docker 或需要更新 ,請下載 及安裝 1.10.0. . – OS X https ://github.com/docker/toolbox/releases/download/v1.10.0/DockerToolbox-1.10.0.pkg – Windows https://github.com/docker/toolbox/releases/download/v1.10.0/DockerToolbox- 1.10.0.exe – Linux Refer to the Docker installation documentation to find instructions on how to install Docker version 1.10.0 on the Linux distribution you use. 可支援的版本包括 Docker version 1.6, 1.7, 1.8, 1.8.1, 1.9.0, 1.9.1, or 1.10.0
  • 23. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (4) Install Bluemix CLI  請參考文件說明 : http://clis.ng.bluemix.net/ui/home.html
  • 24. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (5) Install ibm-containers plug-in  請參考文件說明 : http://plugins.ng.bluemix.net/ui/repository.html
  • 25. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (6) bluemix login  Bluemix 不認得 zh_TW 設定 , 請將 LANG 變數設成 en_US 或 zh_Hant • 初次登入 bluemix command line, 您需要設定 api end point 未做 語言設定會看 到此錯誤訊息
  • 26. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (6) bluemix login 請依指示輸入 e-mail, password, organization, space 等資訊
  • 27. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (7) bluemix ic 可讓您查看可用命令 27
  • 28. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 8) bluemix ic init  如何你是第一 次使用 bluemix ic 命令,請先執行 bluemix ic init
  • 29. © 2014 IBM Corporation From DockerHub to Bluemix Catalog (9) bluemix ic info JosephdeMacBook-Pro:~ joseph$ bluemix ic info 日期 / 時間 : 2016-05-05 11:29:52.883075718 +0800 CST 除錯模式 : false CCS 主機 /url : https://containers-api.ng.bluemix.net 登錄主機 : https://registry.ng.bluemix.net Bluemix api 主機 /url : https://api.ng.bluemix.net Bluemix 組織 : changhs@tw.ibm.com(1f6d3957-c6c6-4804-a8c2-5c7b5d382387) Bluemix 空間 : 1-sandbox(3fb3e792-dfb1-4fc2-83ab-62435218d59a) CCS CLI 版本 : 0.9.1 CCS API 版本 : 3.0 2159 2016-05-04T14:28:53 名稱空間 : jjregistry 環境名稱 : prod-dal09-1 儲存器限制 : 無限制 儲存器使用狀況 : 1 儲存器在執行中 : 1 CPU 限制(核心) : 無限制 CPU 使用率(核心) : 1 記憶體限制 (MB) : 2048 記憶體用量 (MB) : 64 浮動 IP 限制 : 2 配置的浮動 IP : 1 連結的公用 IP : 1 ****************** * 系統訊息 * ****************** The size of an image reported by IBM Containers may be the virtual size of zero, this is a known issue, it does not affect the running of containers based on the image. || 建立時間: 2016-03-30 18:48:16 bluemix ic info 指令可檢查您 的 docker 設定是否成功
  • 30. © 2014 IBM Corporation From DockerHub to Bluemix Catalog Thank you
  • 31. © 2014 IBM Corporation From DockerHub to Bluemix Catalog 31 Take me to Bluemix Click Here To learn more about Bluemix Docker Container : https://console.ng.bluemix.net/docs/containers/container_creating_ov.html#container_getti ngstarted_container Thank you