TWCC CLI
1. 部署操作環境
Step 1. 安裝相關套件
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
注意:若以 TWCC 「開發型容器」安裝此工具,需先在容器內執行以下作業,再部署 TWCC CLI 環境:
- 輸入以下指令以修改名稱伺服器 (Name server)
- 再輸入
i
,進入編輯模式
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
將 nameserver 10.96.0.10
改為 8.8.8.8
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
按 esc
鍵進入命令模式
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
輸入 :wq!
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
按enter
鍵存檔離開
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
再按enter
回到容器命令列
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 若本機尚未安裝 Python,以下以 TWCC 虛擬運算服務建立的環境 (OS:Ubuntu 16.04) 為例,請依序執行以下指令安裝套件
若結果出得來,跳過
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
亦可以直接執行以下指令
container 環境底下
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Step 2. 進入 TWCC_CLI 環境並開始使用服務
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
查詢金鑰的方法:
- 登入 TWCC 後,點選右上角的使用者名稱,再點選「API 金鑰管理」
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
更換使用計畫的方法:
- 執行以下指令刪除金鑰,並再次進入 TWCC CLI 環境,便可輸入其他計畫之金鑰
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
注意:
- 輸入 API 金鑰後,若遇以下語言設定問題:
" UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-6: ordinal not in range(128)"
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 請先依序執行以下指令,設定語言檔案,再次輸入 API 金鑰即可登入
2. 開發型容器
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
注意:以 TWCC CLI 使用開發型容器服務,須先部署 TWCC CLI 的操作環境。參見本文件上方:1. 部署操作環境
2-1. 建立開發型容器

- 在 TWCC 開發型容器管理頁面,可看到已建立的容器

Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
預設建立資訊
映像檔類型、映像檔 |
容器名稱 |
硬體設定 |
TensorFlow (latest environment) |
twcc-cli |
1 GPU + 4 cores + 90 GB memory |
2-2. 檢視所有映像檔類型
2-3. 檢視所有映像檔
2-4. 檢視容器資訊


- 檢視 site_id 為
93072
的容器連線資訊 (將會顯示您的 SSH 連線資訊:主機帳號、SSH 連接埠)

2-5. 刪除容器

2-6. 容器複本
- TWCC CLI 提供使用者客製化容器,在 TWCC 完成環境部署後,可保存容器複本,再次建立容器便能快速進入熟悉的工作環境。
2-6-1. 提出容器複本的申請
- 提出申請保留容器 ID 為
283375
的容器,image tag 自訂為 latest,image name 自訂為 copyofimg
:

Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
使用者需先在 TWCC 建立容器,並自行將環境部署完成,才能提出此申請。提出申請後,系統管理員將會審核您的申請,將會另行以 e-mail 通知審核結果
2-6-2. 列出已提出的申請
2-6-3. 以複本建立容器
- 申請審核通過後,便可使用以下方法,以複本直接建立容器
- 複本的映像檔類型名稱皆為 「Custom Image」、映像檔名稱為使用者自訂的「image name:image tag」
3. 雲端物件儲存
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
注意:
- 若在開發型容器內使用雲端物件儲存、存取資料,需先在容器環境內部署 TWCC CLI 工具。參見本文件上方:1. 部署操作環境
- 一般檔案管理 (上傳/刪除/搜尋Metadata/設定通知),亦可於 TWCC 入口網站內操作,參見:雲端物件儲存
3-1. 建立儲存體
3-2. 檢視所有儲存體
3-3. 檢視儲存體的所有檔案
3-4. 刪除儲存體的某一檔案
- 刪除儲存體
wtestbucket
的 a.txt
檔案內容
3-5. 上傳檔案 或 資料夾至儲存體
3-6. 下載儲存體檔案 或 整個儲存體
3-7. 刪除儲存體
- 若儲存體仍有檔案,刪除時將會顯示錯誤訊息。請加上 "-df",將會先刪除檔案,再刪除儲存體
2019-11-07
