culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    What is a stack in Docker Swarm?

    Answers

    A stack of containers running on the same host
    A set of related services that deploy and scale togetherCorrect
    A data structure used by Docker internally
    A group of Swarm nodes

    A stack in Docker Swarm is a set of related services that are deployed and managed as a unit. It is defined using a docker-compose.yml file and deployed with the docker stack deploy command. Stacks make it easy to manage complex applications made up of multiple services, networks, and volumes.