作者 主題: [docker] How to install UCP on Ubuntu 14.04  (閱讀 6915 次)

0 會員 與 1 訪客 正在閱讀本文。

zarr12steven

  • SA 苦力組
  • 懷疑的國中生
  • **
  • 文章數: 71
    • 檢視個人資料
[docker] How to install UCP on Ubuntu 14.04
« 於: 2016-02-18 18:36 »
Step 1: Verify you have the prerequisites

  • RHEL 7.0, 7.1
  • Ubuntu 14.04 LTS
  • CentOS 7.1

Setp 2: Install UCP

代碼: [選擇]
curl -fsSL https://get.docker.com/ | sh這個會去幫你自動裝docker engine

代碼: [選擇]
docker -v請務必確認要Docker version 1.10 or later,要不然會無法安裝UCP的。

代碼: [選擇]
sudo usermod -aG docker $USER把目前的使用者加入docker 群組裡面,這樣才能使用dokcer的指令,記得要重登一次。

代碼: [選擇]
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp install -i這才是真正去裝UCP的指令,-i 是指互動模式

reference: https://github.com/docker/docker/releases

Step 3: Open browser

Login as "admin"/(your admin password) to UCP at https://IP:443

最後提一下,這個記得要去註冊一下https://hub.docker.com/enterprise/trial/,這樣就可以有30天試用了。
« 上次編輯: 2016-02-18 18:37 由 zarr12steven »
不強就要挨打

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17484
    • 檢視個人資料
    • http://www.study-area.org
Re: [docker] How to install UCP on Ubuntu 14.04
« 回覆 #1 於: 2016-02-18 20:06 »
哇!神作!

zarr12steven

  • SA 苦力組
  • 懷疑的國中生
  • **
  • 文章數: 71
    • 檢視個人資料
Re: [docker] How to install UCP on Ubuntu 14.04
« 回覆 #2 於: 2016-02-19 11:35 »
補充一下,如果想要看到application的話,目前必須使用先寫好一個docker-compose.yml後,再下docker-compose up -d  ,然後接著就會出現在你的UCP上的application了。

至於UCP的scaling功能,尚在研究中。

docker-compose的安裝可以參考:https://github.com/docker/compose/releases

BTW  參考來源:https://github.com/docker/ucp_lab

@netman 您過獎了!!!!
« 上次編輯: 2016-02-19 11:44 由 zarr12steven »
不強就要挨打

zarr12steven

  • SA 苦力組
  • 懷疑的國中生
  • **
  • 文章數: 71
    • 檢視個人資料
Re: [docker] How to install UCP on Ubuntu 14.04
« 回覆 #3 於: 2016-02-22 15:31 »
UCP scale功能說明

代碼: [選擇]
docker-compose scale worker=5
就可以在dashborad上看到長了5台機器

如果想要把剛剛開的5台機器給關掉

代碼: [選擇]
docker-compose scale worker=0
我有試著在UCP WEB上選scale的功能,都死機給我看,暈…這還要查一下原因
« 上次編輯: 2016-02-22 17:35 由 zarr12steven »
不強就要挨打

duncanlo

  • SA 苦力組
  • 俺是博士!
  • *****
  • 文章數: 7312
    • 檢視個人資料
Re: [docker] How to install UCP on Ubuntu 14.04
« 回覆 #4 於: 2016-02-27 16:30 »
我是用docker/ucp安裝的,只要輸入password及controller ip即可,它會自動幫你下其他docker image,
也會自動幫你起container.

假如想體驗docker ucp的,可以用這個方法!

但,我的疑問又來了!!
**它的config都存那兒?**
因為docker hub上的說明,只提到要掛一個data volume供docker sock用。

zarr12steven

  • SA 苦力組
  • 懷疑的國中生
  • **
  • 文章數: 71
    • 檢視個人資料
Re: [docker] How to install UCP on Ubuntu 14.04
« 回覆 #5 於: 2016-03-01 14:06 »
我是用docker/ucp安裝的,只要輸入password及controller ip即可,它會自動幫你下其他docker image,
也會自動幫你起container.

假如想體驗docker ucp的,可以用這個方法!

但,我的疑問又來了!!
**它的config都存那兒?**
因為docker hub上的說明,只提到要掛一個data volume供docker sock用。

回duncan大:
config通常我都是copy進去container的 或是你也可以用volume的方式掛進去也行,如果想要方便修改管理的話,建議用volume的方式。
不強就要挨打