|
|
|
@ -34,10 +34,10 @@ docker swarm init
|
|
|
|
|
docker service create \
|
|
|
|
|
--name test1 \
|
|
|
|
|
--mount type=bind,src=/tmp,dst=/usr/share/nginx/html \
|
|
|
|
|
--detach healtcheck-test
|
|
|
|
|
--detach healthcheck-test
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Watching the healtcheck
|
|
|
|
|
### Watching the health check
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
docker ps |grep test1
|
|
|
|
|