Docker Service

Docker Service

Docker Service

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed docker swarm.

In this blog post, we will discuss docker service. We will also deploy a docker service in our existing docker swarm cluster.

Prerequisite for this demo:

  • Docker swarm cluster initiated and configured

What is docker service?

In a distributed application, different pieces of the app are called “services”. For example, if you imagine a video sharing site, it probably includes a service for storing application data in a database, a service for video transcoding in the background after a user uploads something, a service for the front-end, and so on.

Services are really just “containers in production.” A service only runs one image, but it codifies the way that image runs—what ports it should use, how many replicas of the container should run so the service has the capacity it needs, and so on. Scaling a service changes the number of container instances running that piece of software, assigning more computing resources to the service in the process.

Docker Service Demo:

Hope you have enjoyed this article. In the next blog post, we will discuss docker stack.

To get more details on docker, please refer below docker documentation


Leave a Reply

Close Menu