Post on 11-Apr-2017
CleverToday
What’s new with Docker 1.13
CleverToday
Command Line Interface
CleverToday
CLI restructuration
• Problems:
• Number of commands at top level was becoming large
• Mixing of container and image commands
• Different sub-commands for same actions (ps / ls)
CleverToday
CLI restructuration
• attach• build• commit• cp• create• diff• events• exec• export
• history• images• import• info• inspect• kill• load• login• logout
• logs• network• node• pause• port• ps• pull• push• rename
• restart• rm• rmi• run• save• search• service• start• stats
• stop• swarm• tag• top• unpause• update• version• volume• wait
• Docker 1.12 commands:
CleverToday
CLI restructuration
• checkpoint• container• image• network• node• plugin• secret
• service• stack• swarm• system• volume
• build• deploy• login• logout• run• search• version
• Docker 1.13:
Management
CleverToday
CLI restructuration
• What about the legacy commands?
• Still supported in 1.13
• Not sure when they’re going to be removed
• Use DOCKER_HIDE_LEGACY_COMMANDS=1 to only show new command structure
CleverToday
CLI Backwards Compatibility
• Do you use Docker Machine?
CleverToday
CLI Backwards Compatibility
• Do you use Docker Machine?
• Getting tired of this error?
Error response from daemon: client is newer than server
CleverToday
A newer CLI will now be able to talk to an older daemon
Client 1.13
Daemon 1.13 Daemon 1.11 Daemon 1.12
CleverToday
A newer CLI will now be able to talk to an older daemon
Client 1.13
Daemon 1.13 Daemon 1.11 Daemon 1.12
CleverToday
Data management command
• New subcommands under docker system
CleverToday
Swarm
CleverToday
Secret management
• It is now possible to create Secrets for Swarm cluster
• Secrets can be:
• Passwords• Private keys• …
CleverToday
Secret management
• How does it work?
CleverToday
Compose to Swarm
• Not possible to use a Compose file with 1.12
• Docker Compose 1.10.0 introduces Compose file version 3
• Specifically designed to work with the docker stack command
CleverToday
Compose to Swarm
• Demo time!
CleverToday
Other changes• Add --attachable to enable docker run to work in swarm-
mode overlay network
• Add --force to docker service update
• Experimental features not in a separate build anymore
• Plugins out of experimental
• …
CleverToday
For more…
https://github.com/docker/docker/blob/master/CHANGELOG.md
CleverToday
brice@clevertoday.com@bargenson