Skip to content

Docker Services

A service is the definition of the tasks to execute on the manager or worker nodes. It is the central structure of the swarm system and the primary root of user interaction with the swarm. When you create a service, you specify which container image to use and which commands to execute inside running containers. Additionally, a docker service can be scaled with replicas of the docker container.

To create a service from an image, you can run:

Text Only
docker service create my-image

You should then be able to see it with:

Text Only
docker service ls

More about Docker services can be found in the Docker Stack section, which is what helps to deploy services.