SlideShare a Scribd company logo
容器技術課程
資料科學應用 Philipz
鄭淳尹
Philipz (鄭淳尹)
Docker.Taipei 共同發起人
2014 COSCUP/iThome Summit 講者
2015 Microsoft Azure 開發者大會 講者
2016 COSCUP Docker 進階工作坊
2016 元智大學資工系 Docker 專題演講
2016 義守大學資工系 Docker 研習營
2017 逢甲大學資工系 Docker 研習班
容器與資料科學應用
容器與資料科學應用
容器與資料科學應用
容器與資料科學應用
課程大綱
1. 容器與資料科學
2. Rocker - RStudio
3. Python & Jupyter
4. Nvidia-docker 工具
5. Docker & TensorFlow GPU
6. Docker Compose for Data Science
7. 結語
1. 容器與資料科學
容器與資料科學應用
運算膠囊整合研究計算所需的資料、研究方法、運算
平台,輕易就可重現研究成果。
容器與資料科學應用
Singularity
A Container for HPC
Singularity HPC Container Technology Moves Out of the
Lab
2. Rocker - RStudio
R & RStudio
https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image
$ docker run -d -p 8787:8787 rocker/rstudio
● username: rstudio
● password: rstudio
http://ropenscilabs.github.io/r-docker-tutorial/
http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html
Commit to New Docker image
install.packages("ggplot2")
docker commit CONTAINER_ID
docker run NEW_DOCKER_IMAGE
rOpenSci
https://ropensci.org/tutorials/
3. Python & Jupyter
Jupyter Docker Stack
https://github.com/jupyter/docker-stacks
How to Use
$ docker run -it --rm -p 8888:8888 jupyter/scipy-notebook
Volume to Save
$ docker run -it --rm -p 8888:8888 -v
YOUR_FOLDER:/home/jovyan/work jupyter/scipy-notebook
Docker Volume
vSphere, NFS, AWS EFS, Azure File
Storage
4. Nvidia-docker 工具
Docker + TensorFlow + GPU
● Machine Learning, Deep Learning
● TensorFlow Docker images
● nvidia-docker, All-in-one DL image Deep Learning
Docker & NVIDIA GPUs
5. Docker & TensorFlow
GPU
Just ONE Line
nvidia-docker run -it --rm -p 8888:8888
tensorflow/tensorflow:1.3.0-gpu
Only Support Linux
6. Docker Compose for
Data Science
Compose File Sample (1/3)
version: '2'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
Compose File Sample (2/3)
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
Compose File Sample (3/3)
ropensci:
depends_on:
- wordpress
image: rocker/ropensci:latest
ports:
- "8787:8787"
restart: always
volumes:
db_data:
RStudio with MySQL DB
7. 結語
容器思維
1. 各階段如何使用容器
2. 直接用容器,不再重頭安裝
3. 官方映像檔或依需要客製
4. 營運環境亦使用容器
5. 在易用性與尺寸取得平衡
6. 使用標籤(tag)區分版本
7. 擺脫程式語言限制,善用各語言優點
TensorFlow & Singularity
FaaS & Machine Learning
https://github.com/jmkhael/faas-tensorflow
Docker 線上自學網站
Docker 從入門到實踐
gitbook.com/book/philipzheng/docker_p
ractice/
Docker 線上自學網站
Docker 從入門到實踐
gitbook.com/book/philipzheng/docker_p
ractice/
Thank you
Docker可省下比金錢更寶貴的時間!

More Related Content

PDF
Docker研習營
PDF
時代在變 Docker 要會:台北 Docker 一日入門篇
PDF
手把手帶你學 Docker 入門篇
PDF
容器與IoT端點應用
PDF
桃園市教育局Docker技術入門與實作
PDF
Docker & GitLab
PDF
Docker basic on azure
PDF
Docker 進階實務班
Docker研習營
時代在變 Docker 要會:台北 Docker 一日入門篇
手把手帶你學 Docker 入門篇
容器與IoT端點應用
桃園市教育局Docker技術入門與實作
Docker & GitLab
Docker basic on azure
Docker 進階實務班

What's hot (20)

PDF
Docker For Dummies
PDF
Docker on Raspberry Pi and CoreOS
PDF
COSCUP - Fleet
PDF
Production FS: Adapt or die - Claudia Beresford & Tiago Scolar
PDF
Using Containers for Continuous Integration and Continuous Delivery
PPTX
Cloud Foundry V2 | Intermediate Deep Dive
PPTX
Container sig#1 ansible-container
PDF
Docker 初探,實驗室中的運貨鯨
PDF
Docker1.12イングレスロードバランサ
PDF
Docker composeで開発環境をメンバに配布せよ
PDF
How to easy deploy app into any cloud
PDF
Docker 導入:障礙與對策
PDF
Introduction to Project atomic (CentOS Dojo Bangalore)
PDF
"Yahoo! JAPAN の Kubernetes-as-a-Service" で加速するアプリケーション開発
PDF
手把手帶你學Docker 03042017
PDF
Dockerize Your Projects - A Brief Introduction to Containerization
PDF
Use MQTT in Docker on Raspberry Pi
PDF
There is no container - Ori Pekelman
PDF
Security in a containerized world - Jessie Frazelle
Docker For Dummies
Docker on Raspberry Pi and CoreOS
COSCUP - Fleet
Production FS: Adapt or die - Claudia Beresford & Tiago Scolar
Using Containers for Continuous Integration and Continuous Delivery
Cloud Foundry V2 | Intermediate Deep Dive
Container sig#1 ansible-container
Docker 初探,實驗室中的運貨鯨
Docker1.12イングレスロードバランサ
Docker composeで開発環境をメンバに配布せよ
How to easy deploy app into any cloud
Docker 導入:障礙與對策
Introduction to Project atomic (CentOS Dojo Bangalore)
"Yahoo! JAPAN の Kubernetes-as-a-Service" で加速するアプリケーション開発
手把手帶你學Docker 03042017
Dockerize Your Projects - A Brief Introduction to Containerization
Use MQTT in Docker on Raspberry Pi
There is no container - Ori Pekelman
Security in a containerized world - Jessie Frazelle
Ad

Viewers also liked (14)

PDF
容器與 Gitlab CI 應用
PDF
2016 ModernWeb 分享 - 恰如其分 MySQL 程式設計 (修)
PDF
HITCON駭客戰隊與CTF經驗分享
PPTX
容器驅動開發 - .NET Conf 2017 @ 台中
PDF
聊天機器人:一個沒有小編的世界
PDF
企業導入容器經驗分享與開源技能培養
PDF
用 Bitbar Tool 寫 Script 自動擷取外幣
PPTX
大型 Web Application 轉移到 微服務的經驗分享
PDF
與設計架構當朋友
PPTX
API Token 入門
PDF
Continuous Delivery - 敏捷開發的最後一哩路
PDF
PHP 良好實踐 (Best Practice)
PDF
無瑕的程式碼 Clean Code 心得分享
PDF
[系列活動] 一天搞懂對話機器人
容器與 Gitlab CI 應用
2016 ModernWeb 分享 - 恰如其分 MySQL 程式設計 (修)
HITCON駭客戰隊與CTF經驗分享
容器驅動開發 - .NET Conf 2017 @ 台中
聊天機器人:一個沒有小編的世界
企業導入容器經驗分享與開源技能培養
用 Bitbar Tool 寫 Script 自動擷取外幣
大型 Web Application 轉移到 微服務的經驗分享
與設計架構當朋友
API Token 入門
Continuous Delivery - 敏捷開發的最後一哩路
PHP 良好實踐 (Best Practice)
無瑕的程式碼 Clean Code 心得分享
[系列活動] 一天搞懂對話機器人
Ad

More from Philip Zheng (20)

PDF
AI Coding工具介紹 - 革新程式開發流程的智能助手 by Philipz
PDF
Solo Leveling with Cursor by Philipz 鄭淳尹
PDF
十二項架構設計原則
PDF
從零開始做架構圖
PDF
VSCode Remote Development 介紹
PDF
VSCode Remote Development
PPTX
K8s removes dockershime
PPTX
Apahce Ignite
PDF
Cloud Native Practice
PDF
微服務對IT人員的衝擊
PDF
Docker容器微服務 x WorkShop
PDF
容器式高效率 ChatBot 開發方法
PDF
理財機器人技術簡介與實作經驗分享
PDF
理財機器人技術簡介與實作經驗分享
PDF
Docker + CI pipeline 的高效率 ChatBot 開發方法
PDF
桃園市教育局Docker技術入門與實作
PDF
程式交易介紹及 FinTech 創作分享
PDF
容器式軟體開發介紹
PDF
人工智能在量化投资分析中的实践
PDF
Trading bot演算法與軟工在程式交易上的實踐
AI Coding工具介紹 - 革新程式開發流程的智能助手 by Philipz
Solo Leveling with Cursor by Philipz 鄭淳尹
十二項架構設計原則
從零開始做架構圖
VSCode Remote Development 介紹
VSCode Remote Development
K8s removes dockershime
Apahce Ignite
Cloud Native Practice
微服務對IT人員的衝擊
Docker容器微服務 x WorkShop
容器式高效率 ChatBot 開發方法
理財機器人技術簡介與實作經驗分享
理財機器人技術簡介與實作經驗分享
Docker + CI pipeline 的高效率 ChatBot 開發方法
桃園市教育局Docker技術入門與實作
程式交易介紹及 FinTech 創作分享
容器式軟體開發介紹
人工智能在量化投资分析中的实践
Trading bot演算法與軟工在程式交易上的實踐

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Cloud computing and distributed systems.
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Modernizing your data center with Dell and AMD
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Understanding_Digital_Forensics_Presentation.pptx
Cloud computing and distributed systems.
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Monthly Chronicles - July 2025
Encapsulation_ Review paper, used for researhc scholars
Modernizing your data center with Dell and AMD
Reach Out and Touch Someone: Haptics and Empathic Computing
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation

容器與資料科學應用