From f90a194b8684fbfee03fe78f1fd62268807224bd Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Wed, 18 Apr 2018 15:34:04 -0400 Subject: [PATCH] removed older notes about detach and service logs Since these options have been around nearly a year, I removed some unneeded verbosity and consolidated the detach stuff. --- slides/swarm/firstservice.md | 38 ++++-------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/slides/swarm/firstservice.md b/slides/swarm/firstservice.md index 56bef3d0..d7b01583 100644 --- a/slides/swarm/firstservice.md +++ b/slides/swarm/firstservice.md @@ -20,23 +20,6 @@ --- -class: extra-details - -## `--detach` for service creation - -(New in Docker Engine 17.05) - -If you are running Docker 17.05 to 17.09, you will see the following message: - -``` -Since --detach=false was not specified, tasks will be created in the background. -In a future release, --detach=false will become the default. -``` - -You can ignore that for now; but we'll come back to it in just a few minutes! - ---- - ## Checking service logs (New in Docker Engine 17.05) @@ -62,20 +45,6 @@ Note: by default, when a container is destroyed (e.g. when scaling down), its lo class: extra-details -## Before Docker Engine 17.05 - -- Docker 1.13/17.03/17.04 have `docker service logs` as an experimental feature -
(available only when enabling the experimental feature flag) - -- We have to use `docker logs`, which only works on local containers - -- We will have to connect to the node running our container -
(unless it was scheduled locally, of course) - ---- - -class: extra-details - ## Looking up where our container is running - The `docker service ps` command told us where our container was scheduled @@ -141,15 +110,16 @@ class: extra-details ## Monitoring deployment progress with `--detach` -(New in Docker Engine 17.05) +(New in Docker Engine 17.10) -- The CLI can monitor commands that create/update/delete services +- The CLI monitors commands that create/update/delete services -- `--detach=false` +- In effect, `--detach=false` is the default - synchronous operation - the CLI will monitor and display the progress of our request - it exits only when the operation is complete + - Ctrl-C to detach at anytime - `--detach=true`