docker-service - Man Page
Manage Swarm services
Examples (TL;DR)
- 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 about one or more services:
docker service inspect service_name_or_ID1 service_name_or_ID2
- List the tasks of one or more services:
docker service ps service_name_or_ID1 service_name_or_ID2 ...
- Scale to a specific number of replicas for a space-separated list of services:
docker service scale service_name=count_of_replicas
- Remove one or more services:
docker service rm service_name_or_ID1 service_name_or_ID2
Synopsis
docker service
Description
Manage Swarm services
Options
-h, --help[=false] help for service
See Also
docker(1), docker-service-create(1), docker-service-inspect(1), docker-service-logs(1), docker-service-ls(1), docker-service-ps(1), docker-service-rm(1), docker-service-rollback(1), docker-service-scale(1), docker-service-update(1)
Referenced By
docker-service-create(1), docker-service-inspect(1), docker-service-logs(1), docker-service-ls(1), docker-service-ps(1), docker-service-rm(1), docker-service-rollback(1), docker-service-scale(1), docker-service-update(1).
Sep 2024 Docker Community Docker User Manuals