Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Dockers
Search
Luigi Maselli
April 03, 2016
Technology
180
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dockers
Docker use cases
Luigi Maselli
April 03, 2016
More Decks by Luigi Maselli
See All by Luigi Maselli
Applicazioni React Native per Android, iOS e Web
grigio
1
250
Introduzione alla programmazione, con JavaScript
grigio
0
150
Anatomia di un'app javascript isomorfica
grigio
0
150
Libera un Chromebook
grigio
1
130
Material UI, React and Meteor
grigio
2
360
Why Meteor
grigio
2
420
Other Decks in Technology
See All in Technology
20260912_スクフェス三河
kgnkhkr
0
380
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
3
550
絵ではじめるKubernetesセキュリティ
aoi1
3
560
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
1
1.6k
Slack上でインフラをトラブルシュートする! Agentic Platform Engineeringの第一歩
teru0x1
4
1.7k
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.3k
俺の仕事は AIに奪われないし、たぶんその BIも要らない
hikaruri
0
470
Deploying a Full-Stack Bun-Native Framework on Cloudflare Workers
7nohe
0
170
Minecraft JavaのMODをSwiftで作る
1mash0
0
160
iOSDC Japan 2026 day1 TrackC 10:50
feedtailor
1
160
幾何アルゴリズムで なめらかなピン操作を / iOSDC Japan 2026 / smoothpin
kazumanagano
0
350
技術的負債から考える、AI時代のエンジニアリング投資 — ビズリーチの技術的負債と向き合った経験から、変更し続けられるソフトウェアを考える/ technical-debt-con2026
visional_engineering_and_design
3
2.9k
Featured
See All Featured
Speed Design
sergeychernyshev
33
2.1k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
230
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Mobile First: as difficult as doing things right
swwweet
225
10k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Building the Perfect Custom Keyboard
takai
2
870
エンジニアに許された特別な時間の終わり
watany
109
250k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Transcript
DOCKER HOME
ARGOMENTI DEL GIORNO Cos'è Docker (ma in generale i container)
Casi d'uso ed ecosistema
Luigi Maselli Fullstack developer web: web: twitter: @grigi0 https://grigio.org https://corso-javascript.it
I ❤ configure Linux but...
None
None
Cosa sono i Linux/* Containers (es. Docker, LXC, rkt)?
None
LIMITAZIONI E DIFFERENZE CON VMS Sandbox per processi in esecuzione
Partenza istantanea Kernel, architettura, fs, .., dell' Host Stateless (o per lo meno lo stato è esplicito)
PRIMA.. PROXMOX (OPENVZ)
BIG PICTURE "OPEN CLOUD" > SERVER Aggiornamenti istantanei, atomici Build
ripetibili: stack + myapp + config + data = WIN! Astrazione "multi computer" indipendente dal cloud provider Autoscaling per gestire picchi sul cloud più economico Allocare app su nodo con caratteristiche specifiche (es EU+SSD+REPLICA2)
DOCKER (PER IMPARARE AD USARE LINUX IN SANDBOX)
docker pull ubuntu:15.04 15.04: Pulling from library/ubuntu 9502adfba7f1: Pull complete
4332ffb06e4b: Pull complete 2f937cc07b5f: Pull complete a3ed95caeb02: Pull complete Digest: sha256:2fb27e433b3ec.. Status: Downloaded newer image for ubuntu:15.04 docker run -ti --rm ubuntu:15.04 root@009b5007de75:/# echo "ciao ne!" > /tmp/prova.txt root@009b5007de75:/# exit # (altro terminale) docker diff 009b5007de75 C /tmp A /tmp/prova.txt docker diff 009b5007de75 Error response from daemon: No such container: 009b5007de7
NON SOLO UBUNTU (DEBIAN, REDHAT,..) docker images ubuntu 15.04 ...
131.3 MB debian 8 ... 125.1 MB busybox latest ... 2.43 MB gliderlabs/alpine 3.1 ... 5.026 MB
DOCKERFILE, LA PROPRIA RICETTA FROM alpine:3.2 MAINTAINER Luigi Maselli grigio.org
RUN apk add --update pm-utils nodejs && \ rm -rf /var/cache/apk/* ADD ./app.js / EXPOSE 8080 CMD ["node", "app.js"] docker build -t grigio/web-pm-suspend .
ESECUZIONE APP docker run --privileged --rm -p 9000:8080 --name web-pm-suspend
-t grigio/web
E SE CI FOSSE IL DB? DOCKER-COMPOSE web: build: .
environment: - HOSTNAME=demo.corso-javascript.it # exampleapp_db_1 generated by docker-compose - MONGOURL=mongodb://exampleapp_db_1:27017/example_app links: - db db: image: mongo volumes: - db:/data/db docker-compose up - d
Demo docker ps docker rm -f dockerui && docker run
-d --name=dockerui --privileged -p 9000:9000 -v / # dentro progetto docker-compose up -d
RISORSE https://docs.docker.com/linux/step_one/ https://github.com/grigio/docker-apps https://github.com/corso-javascript/docker-compose- nginx-nodejs
RECAP Architettura stateless (o quasi) Automatizza il più possibile Profit!
Senza sorprese
GRAZIE!