mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-16 03:19:18 +00:00
Merge branch 'master' of github.com:jpetazzo/container.training
This commit is contained in:
@@ -100,7 +100,7 @@ class: extra-details
|
||||
Let's start a Tomcat container:
|
||||
|
||||
```bash
|
||||
$ docker run --name webapp -d -p 8080:8080 -v /usr/local/tomcat/logs
|
||||
$ docker run --name webapp -d -p 8080:8080 -v /usr/local/tomcat/logs tomcat
|
||||
```
|
||||
|
||||
Now, start an `alpine` container accessing the same volume:
|
||||
|
||||
@@ -174,7 +174,7 @@ class: extra-details
|
||||
|
||||
- great in headless scripts (where nobody's watching anyway)
|
||||
|
||||
.warning[`--detach=false` does not complete *faster*. It just *doesn't wait* for completion.]
|
||||
.warning[`--detach=true` does not complete *faster*. It just *doesn't wait* for completion.]
|
||||
|
||||
---
|
||||
|
||||
@@ -203,7 +203,7 @@ class: extra-details
|
||||
|
||||
- And then to 4 copies per node:
|
||||
```bash
|
||||
docker service update pingpong --replicas 15 --detach=true
|
||||
docker service update pingpong --replicas 20 --detach=true
|
||||
```
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user