14
Use MQTT in Docker on Raspberry Pi Philipz 鄭淳尹

Use MQTT in Docker on Raspberry Pi

Embed Size (px)

Citation preview

Page 1: Use MQTT in Docker on Raspberry Pi

Use MQTT in Dockeron Raspberry Pi

Philipz 鄭淳尹

Page 2: Use MQTT in Docker on Raspberry Pi

Docker.Taipei 共同發起人

《Docker 從入門到實踐》翻譯發起人

碁峰《Docker入門與實戰》審閱

Acer eDC, 玉山銀行資訊處, 臺北榮民總醫院Java/Web Developer, Image Processing, Software Engineering, Algorithmic Trading, Docker

Philipz

Page 3: Use MQTT in Docker on Raspberry Pi

Why RPi + Docker1st credit card-sized PCHW/SW split….IoT PrototypePortable WYSIWYRARM is Rising!!!

Page 4: Use MQTT in Docker on Raspberry Pi

GPIO in Docker

Control LED Blinking

Page 5: Use MQTT in Docker on Raspberry Pi

The Martix of Hell

Page 6: Use MQTT in Docker on Raspberry Pi

Docker is not Virtual MachineOperating-system-level virtualizationChroot + Cgroup + githubGolangContainer engineSupport LXC, Windows container soon

Page 7: Use MQTT in Docker on Raspberry Pi

Docker Layers

Page 8: Use MQTT in Docker on Raspberry Pi

Cmd Diagram● run● pull, push● exec● commit● rm, rmi● build, tag● logs, stats

Page 9: Use MQTT in Docker on Raspberry Pi

Use ScenarioPush

Pull

Commit

Deploy

IoT Device

Page 10: Use MQTT in Docker on Raspberry Pi

Use case● Databox - Volume container● Development or Runtime env - Onbuild● Computing - GPU, GPIO● Cross-compilers, build container● Installation container - Cmd, GUI● Service compontents***● VM style - bad idea

Page 13: Use MQTT in Docker on Raspberry Pi

FAQ1. How to build base image? Scratch, Github2. Run CentOS on RPi? Docker Hub, Github3. How to use Boot2Docker? Just use Linux4. Why Windows support Docker?5. Why IoT developer must learn Docker?

Device & Cloud use the same SW process IT careers all need Docker…...

Page 14: Use MQTT in Docker on Raspberry Pi

Thank you

Time is more precious than gold.