Docker - Service

> Virtualization - (Virtual Machine|Container) > Docker > Docker - Service

1 - About

Services in the context of docker are really just containers.

Advertising

3 - Management

3.1 - 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>  

3.2 - List

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

3.3 - Scale

See app scaling

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

4 - Documentation / Reference

Advertising