informatica:linux:docker:red
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| informatica:linux:docker:red [2017/02/13 20:07] – jose | informatica:linux:docker:red [2017/02/13 20:18] (current) – jose | ||
|---|---|---|---|
| Line 102: | Line 102: | ||
| </ | </ | ||
| + | ====== Crear un servicio ====== | ||
| + | https:// | ||
| + | |||
| + | # docker service create --replicas 1 --name helloworld alpine ping docker.com | ||
| + | ny109vvho4z1f63lo9f2bbsb4 | ||
| + | |||
| + | # docker service ls | ||
| + | |||
| + | ID NAME MODE REPLICAS | ||
| + | ny109vvho4z1 | ||
| + | |||
| + | Ahora miramos el servicio | ||
| + | |||
| + | https:// | ||
| + | |||
| + | docker service inspect --pretty helloworld | ||
| + | < | ||
| + | ID: | ||
| + | Name: | ||
| + | Service Mode: | ||
| + | | ||
| + | Placement: | ||
| + | UpdateConfig: | ||
| + | | ||
| + | On failure: | ||
| + | Max failure ratio: 0 | ||
| + | ContainerSpec: | ||
| + | | ||
| + | | ||
| + | Resources: | ||
| + | Endpoint Mode: vip | ||
| + | </ | ||
| + | |||
| + | Vemos donde corre: | ||
| + | # docker service ps helloworld | ||
| + | |||
| + | ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS | ||
| + | l4edt3bnis27 | ||
informatica/linux/docker/red.1487016444.txt.gz · Last modified: by jose
