© 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

More Related Content

PPT
Create to blumix docker container with rest api
PPTX
Retrive&amp;rank
PPT
Bluemix node red-part iii
PPT
Bluemix Node-Red Part II
PPT
Open whisk quick start guide
PPT
Bluemix Node-Red Part I
PDF
AWS EC2 for beginner
PPTX
Docker tutorial
Create to blumix docker container with rest api
Retrive&amp;rank
Bluemix node red-part iii
Bluemix Node-Red Part II
Open whisk quick start guide
Bluemix Node-Red Part I
AWS EC2 for beginner
Docker tutorial

What's hot (20)

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

Similar to From docker hub to bluemix catalog (20)

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

More from Joseph Chang (12)

PPT
Investment advisor with bluemix trade off analysis
PPT
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configration
PPT
Bluemix hadoop beginners Guide part I
PPT
Create docker image with bluemix dev ops
PPT
Connect to blumix docker container with putty
PPT
Run windows vm on bluemix
PPT
Connect to blumix vm with vnc
PPT
Connect to blumix vm with putty
PPT
Using java to access bluemix object storage v2
PPTX
Bluemix iot demo
PPT
Bluemix u steam
PPT
Bluemix iot with intel galileo
Investment advisor with bluemix trade off analysis
Jcconf 2015 Taipei -- Bluemix java liberty -auto-configration
Bluemix hadoop beginners Guide part I
Create docker image with bluemix dev ops
Connect to blumix docker container with putty
Run windows vm on bluemix
Connect to blumix vm with vnc
Connect to blumix vm with putty
Using java to access bluemix object storage v2
Bluemix iot demo
Bluemix u steam
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