mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-17 20:09:43 +00:00
remove more unneeded detach=false
This commit is contained in:
@@ -141,7 +141,7 @@ It alters the code path for `docker run`, so it is allowed only under strict cir
|
||||
|
||||
- Update `webui` so that we can connect to it from outside:
|
||||
```bash
|
||||
docker service update webui --publish-add 8000:80 --detach=false
|
||||
docker service update webui --publish-add 8000:80
|
||||
```
|
||||
|
||||
]
|
||||
@@ -197,7 +197,7 @@ It has been replaced by the new version, with port 80 accessible from outside.
|
||||
|
||||
- Bring up more workers:
|
||||
```bash
|
||||
docker service update worker --replicas 10 --detach=false
|
||||
docker service update worker --replicas 10
|
||||
```
|
||||
|
||||
- Check the result in the web UI
|
||||
@@ -235,7 +235,7 @@ You should see the performance peaking at 10 hashes/s (like before).
|
||||
- Re-create the `rng` service with *global scheduling*:
|
||||
```bash
|
||||
docker service create --name rng --network dockercoins --mode global \
|
||||
--detach=false $REGISTRY/rng:$TAG
|
||||
$REGISTRY/rng:$TAG
|
||||
```
|
||||
|
||||
- Look at the result in the web UI
|
||||
|
||||
@@ -146,7 +146,7 @@ First, let's make an "innocent" change and deploy it.
|
||||
docker-compose -f dockercoins+healthcheck.yml build
|
||||
docker-compose -f dockercoins+healthcheck.yml push
|
||||
docker service update dockercoins_hasher \
|
||||
--detach=false --image=127.0.0.1:5000/hasher:$TAG
|
||||
--image=127.0.0.1:5000/hasher:$TAG
|
||||
```
|
||||
|
||||
]
|
||||
@@ -170,7 +170,7 @@ And now, a breaking change that will cause the health check to fail:
|
||||
docker-compose -f dockercoins+healthcheck.yml build
|
||||
docker-compose -f dockercoins+healthcheck.yml push
|
||||
docker service update dockercoins_hasher \
|
||||
--detach=false --image=127.0.0.1:5000/hasher:$TAG
|
||||
--image=127.0.0.1:5000/hasher:$TAG
|
||||
```
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user