SlideShare una empresa de Scribd logo
1 de 14
Descargar para leer sin conexión
What's new in Docker 1.13?
Michael Irwin - February 8, 2017
Restructured cli
Number of commands at top level was becoming
quite large
E ort being made to better group and organize
commands
docker images -> docker image list
docker rmi -> docker image rm
docker create -> docker container create
docker ps -> docker container ls
Use DOCKER_HIDE_LEGACY_COMMANDS=1 to only show
new command structure
All legacy commands are still supported in 1.13. Not
sure when removed yet...
Experimental built-in
Experimental builds use to be separate
Made it hard to play with experimental features
Now, add --experimental to dockerd settings
Setting available directly from Docker for
Mac/Windows GUI
Find out if experimental is enabled using docker
system info
> docker system info
...
Experimental: true
...
CLI Backwards Compatibility
Ever get hit with this?
> docker ps
Error response from daemon: client is newer than server
Docker for Mac/Windows are always using the latest
client. Servers may not be. Commands would then
cause the error.
CLI Backwards Compatibility
Ever get hit with this?
> docker ps
Error response from daemon: client is newer than server
Docker for Mac/Windows are always using the latest
client. Servers may not be. Commands would then
cause the error.
No longer an issue!
CLI round-trips with daemon to determine version
and available commands
Swarm Encrypts at Rest
Docker Swarm's RAFT database keeps data encrypted
at rest with decryption keys on lesystem
With new --autolock ag, user has to provide key
to unlock manager
$ docker swarm init --autolock
Swarm initialized: current node (mh1h7vx93t1i0digtdenvqjx1) is now a manager
To add a worker to this swarm, run the following command:
docker swarm join 
--token SWMTKN-1-32lrgk2aa5ubngy1u3tb85j3nh9gy1-072qmokabz6cqma5oaxi 
172.31.10.227:2377
To add a manager to this swarm, run 'docker swarm join-token manager'
To unlock a swarm manager after it restarts, run the docker swarm unlock
command and provide the following key:
SWMKEY-1-CV8QI2JwrGwpGcP9m/cQ+lteVIX12ZjvWV3ol2reNMU
Please remember to store this key in a password manager, since without it yo
will not be able to restart the manager.
...
sudo shutdown -r now
docker swarm unlock < ./swarm-key
Compose to Swarm
New V3 Compose syntax released
Removes non-portable options (volume-driver,
volume-from, and a few others)
Added Swarm options (replicas, mode, etc.)
docker stack deploy --compose-file=docker-compose-stack.yml my-app
docker stack list
docker stack rm my-app
Sample V3 Compose le
version: '3'
services:
app:
image: mikesir87/cats:1.0
ports:
- 5000:5000
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 10s
Data Management Commands
New subcommands under docker system ...
docker system df will show Docker's disk usage
docker system prune will remove all inactive
images/containers/volumes
Inactive images have no containers based from
image
Inactive containers are non-running containers
Inactive volumes are unused volumes
Secret Management
Ability to create secrets for Swarm cluster
Add a secret to a Swarm cluster...
Secrets are available in /run/secrets/
This example would have a le named
/run/secrets/app-properties
docker secret create app-properties app.properties
curl http://example.com/properties | docker secret create app-properties
docker service create --secret app-properties --name=app -p 80:80 nginx
Other Orchestration Updates
Pin image by digest
When running image by tag, Swarm uses digest to
ensure all nodes running same version
Service updates can now rollback, instead of continue
or abort
Added failure thresholds to rollouts
Experimental features
docker build --squash - produces only one layer
for a build
docker service logs - aggregates logs for a service
across all nodes
That's it!

Más contenido relacionado

La actualidad más candente

Justin Corbin Portfolio Labs
Justin Corbin Portfolio LabsJustin Corbin Portfolio Labs
Justin Corbin Portfolio Labs
Justin Corbin
 
Gns3 0.5 Tutorial
Gns3 0.5 TutorialGns3 0.5 Tutorial
Gns3 0.5 Tutorial
rusevi
 

La actualidad más candente (20)

Docker advance topic
Docker advance topicDocker advance topic
Docker advance topic
 
Getting Started with Docker
Getting Started with Docker Getting Started with Docker
Getting Started with Docker
 
Kubernetes in Google Cloud
Kubernetes in Google CloudKubernetes in Google Cloud
Kubernetes in Google Cloud
 
Configure jasmine and karma for code coverage
Configure jasmine and karma for code coverageConfigure jasmine and karma for code coverage
Configure jasmine and karma for code coverage
 
VMware Workstation 9.0.1 Build 894247 Final Keygen
VMware Workstation 9.0.1 Build 894247 Final KeygenVMware Workstation 9.0.1 Build 894247 Final Keygen
VMware Workstation 9.0.1 Build 894247 Final Keygen
 
Powershell direct
Powershell directPowershell direct
Powershell direct
 
swarmmode-dojo
swarmmode-dojoswarmmode-dojo
swarmmode-dojo
 
Talk about Docker
Talk about DockerTalk about Docker
Talk about Docker
 
Squid 3 for windows blogbudaqdegil.blogspot.com
Squid 3 for windows blogbudaqdegil.blogspot.comSquid 3 for windows blogbudaqdegil.blogspot.com
Squid 3 for windows blogbudaqdegil.blogspot.com
 
Dspace
DspaceDspace
Dspace
 
Justin Corbin Portfolio Labs
Justin Corbin Portfolio LabsJustin Corbin Portfolio Labs
Justin Corbin Portfolio Labs
 
Gns3 0.5 Tutorial
Gns3 0.5 TutorialGns3 0.5 Tutorial
Gns3 0.5 Tutorial
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platform
 
Installing Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu InstanceInstalling Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu Instance
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
 
Red hat lvm cheatsheet
Red hat   lvm cheatsheetRed hat   lvm cheatsheet
Red hat lvm cheatsheet
 
Conda cheatsheet
Conda cheatsheetConda cheatsheet
Conda cheatsheet
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Improving WordPress Theme Development Workflow - Naveen Kharwar.
Improving WordPress Theme Development Workflow - Naveen Kharwar.Improving WordPress Theme Development Workflow - Naveen Kharwar.
Improving WordPress Theme Development Workflow - Naveen Kharwar.
 

Similar a What's New in Docker 1.13?

Similar a What's New in Docker 1.13? (20)

Online Meetup: What's new in docker 1.13.0
Online Meetup: What's new in docker 1.13.0 Online Meetup: What's new in docker 1.13.0
Online Meetup: What's new in docker 1.13.0
 
Docker Swarm & Machine
Docker Swarm & MachineDocker Swarm & Machine
Docker Swarm & Machine
 
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3
 
Docker Introduction.pdf
Docker Introduction.pdfDocker Introduction.pdf
Docker Introduction.pdf
 
Academy PRO: Docker. Part 4
Academy PRO: Docker. Part 4Academy PRO: Docker. Part 4
Academy PRO: Docker. Part 4
 
Docker 1.12 and swarm mode
Docker 1.12 and swarm modeDocker 1.12 and swarm mode
Docker 1.12 and swarm mode
 
Docker 進階實務班
Docker 進階實務班Docker 進階實務班
Docker 進階實務班
 
廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班
 
Containerizing Web Application with Docker
Containerizing Web Application with DockerContainerizing Web Application with Docker
Containerizing Web Application with Docker
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Development
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
 
Docker-machine
Docker-machineDocker-machine
Docker-machine
 
Drupal Development with Docker
Drupal Development with DockerDrupal Development with Docker
Drupal Development with Docker
 
From zero to Docker
From zero to DockerFrom zero to Docker
From zero to Docker
 
Azure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish KalamatiAzure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish Kalamati
 
Docker in a JS Developer’s Life
Docker in a JS Developer’s LifeDocker in a JS Developer’s Life
Docker in a JS Developer’s Life
 
Things I've learned working with Docker Support
Things I've learned working with Docker SupportThings I've learned working with Docker Support
Things I've learned working with Docker Support
 
Docker
DockerDocker
Docker
 
Docker HK Meetup - 201707
Docker HK Meetup - 201707Docker HK Meetup - 201707
Docker HK Meetup - 201707
 
Introction to docker swarm
Introction to docker swarmIntroction to docker swarm
Introction to docker swarm
 

Último

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 

What's New in Docker 1.13?

  • 1. What's new in Docker 1.13? Michael Irwin - February 8, 2017
  • 2. Restructured cli Number of commands at top level was becoming quite large E ort being made to better group and organize commands docker images -> docker image list docker rmi -> docker image rm docker create -> docker container create docker ps -> docker container ls Use DOCKER_HIDE_LEGACY_COMMANDS=1 to only show new command structure All legacy commands are still supported in 1.13. Not sure when removed yet...
  • 3. Experimental built-in Experimental builds use to be separate Made it hard to play with experimental features Now, add --experimental to dockerd settings Setting available directly from Docker for Mac/Windows GUI Find out if experimental is enabled using docker system info > docker system info ... Experimental: true ...
  • 4. CLI Backwards Compatibility Ever get hit with this? > docker ps Error response from daemon: client is newer than server Docker for Mac/Windows are always using the latest client. Servers may not be. Commands would then cause the error.
  • 5. CLI Backwards Compatibility Ever get hit with this? > docker ps Error response from daemon: client is newer than server Docker for Mac/Windows are always using the latest client. Servers may not be. Commands would then cause the error. No longer an issue! CLI round-trips with daemon to determine version and available commands
  • 6. Swarm Encrypts at Rest Docker Swarm's RAFT database keeps data encrypted at rest with decryption keys on lesystem With new --autolock ag, user has to provide key to unlock manager
  • 7. $ docker swarm init --autolock Swarm initialized: current node (mh1h7vx93t1i0digtdenvqjx1) is now a manager To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-32lrgk2aa5ubngy1u3tb85j3nh9gy1-072qmokabz6cqma5oaxi 172.31.10.227:2377 To add a manager to this swarm, run 'docker swarm join-token manager' To unlock a swarm manager after it restarts, run the docker swarm unlock command and provide the following key: SWMKEY-1-CV8QI2JwrGwpGcP9m/cQ+lteVIX12ZjvWV3ol2reNMU Please remember to store this key in a password manager, since without it yo will not be able to restart the manager. ... sudo shutdown -r now docker swarm unlock < ./swarm-key
  • 8. Compose to Swarm New V3 Compose syntax released Removes non-portable options (volume-driver, volume-from, and a few others) Added Swarm options (replicas, mode, etc.) docker stack deploy --compose-file=docker-compose-stack.yml my-app docker stack list docker stack rm my-app
  • 9. Sample V3 Compose le version: '3' services: app: image: mikesir87/cats:1.0 ports: - 5000:5000 deploy: replicas: 2 update_config: parallelism: 1 delay: 10s
  • 10. Data Management Commands New subcommands under docker system ... docker system df will show Docker's disk usage docker system prune will remove all inactive images/containers/volumes Inactive images have no containers based from image Inactive containers are non-running containers Inactive volumes are unused volumes
  • 11. Secret Management Ability to create secrets for Swarm cluster Add a secret to a Swarm cluster... Secrets are available in /run/secrets/ This example would have a le named /run/secrets/app-properties docker secret create app-properties app.properties curl http://example.com/properties | docker secret create app-properties docker service create --secret app-properties --name=app -p 80:80 nginx
  • 12. Other Orchestration Updates Pin image by digest When running image by tag, Swarm uses digest to ensure all nodes running same version Service updates can now rollback, instead of continue or abort Added failure thresholds to rollouts
  • 13. Experimental features docker build --squash - produces only one layer for a build docker service logs - aggregates logs for a service across all nodes