Table of Contents

About

Services in the context of docker are really just containers.

Management

Run

To define, run just write a docker-compose.yml file and run it as an app

docker swarm init
docker stack deploy -c <composefile> <appname>  

List

  • List running services associated with an app
docker service ls
  • List tasks associated with an app
docker service ps <service>                 

Scale

See app scaling

Scaling a service is just a matter of changing the number of container instances running that service.

Documentation / Reference