culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    What is a service in Docker Swarm?

    Answers

    A program running in the background
    The definition of a task that runs on the swarm nodesCorrect
    A REST API provided by Docker
    A container with enhanced networking capabilities

    A service in Docker Swarm is the definition of a task that runs on the swarm nodes. Specifies the container image, the number of replicas, networks, volumes, resource restrictions, and other parameters. Docker Swarm is responsible for maintaining the desired state of the service, restarting failed tasks or rebalancing the load as necessary.