educative.io

Educative

Unclear answer: How do Docker containers allow scaling up when a single server isn’t enough to run an application?

The quiz in the introduction for “why Docker” asks the question specified in the title:
“How do Docker containers allow scaling up when a single server isn’t enough to run an application?”

The correct answer supplied is the following:
“Run as many containers as are required”

I have a hard time understanding this solution.

What does “when a single server isn’t enough to run an application” mean?
Does the server not have enough available resources (CPU/RAM etc) to run the application?
In that case, running more containers on the same server wouldn’t help distribute the load.

Does the answer imply that you have more than one server to host your docker containers in?
The benefit of using docker containers in this case would be that distributing the app to said additional servers would be easier.

E.g the problem being solved is trying to distribute an application to multiple servers as smoothly as possible. It’s possible to to this without using docker, it’s just that containers makes the process easier.

Can anyone clarify what’s being communicated by the quiz?
Have some of my thoughts been correct?

Cheers

We want to scale up when a server application needs to handle a higher usage than what a single server can handle. We can create as many containers as we want using the same docker image that will download the same dependencies for all of the docker containers on all of our docker servers. which means we can have various servers. For reference please read this lesson.