1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

docker-service: add page (#4800)

This commit is contained in:
Gaurav Chaudhari 2020-10-29 00:04:54 +05:30 committed by GitHub
parent 8bd6dd5ffa
commit df22df93b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,28 @@
# docker service
> Manage the services on a docker daemon.
> More information: <https://docs.docker.com/engine/reference/commandline/service/>.
- List the services on a docker daemon:
`docker service ls`
- Create a new service:
`docker service create --name {{service_name}} {{image}}:{{tag}}`
- Display detailed information of a space-separated list of services:
`docker service inspect {{service_name|ID}}`
- List the tasks of a space-separated list of services:
`docker service ps {{service_name|ID}}`
- Scale to a specific number of replicas for a space-separated list of services:
`docker service scale {{service_name}}={{count_of_replicas}}`
- Remove a space-separated list of services:
`docker service rm {{service_name|ID}}`