Docker

Docker Services

Create a new service

docker service create <options> <image> <command>

Display detailed information about a service

docker service inspect --pretty <service_name>

List all services

docker service ls

List the tasks of running services

docker service ps

Scale a service (set the number of replicas)

docker service scale <service_name>=<replica>

Update a service configuration

docker service update <options> <service_name>

On this page