Docker Community Forums

Share and learn in the Docker community.

Resource allocation to all apps in a container

(Ankitabarbi) #1

I have some apps running in a container. I did it through supervisor.Now I want to allocate the resources to each app inside the container as per the need .so how do I allocate the resources?

(Sven Dowideit) #2

Can you please be much more specific about what you did, and what you are trying to achieve?

(Ankitabarbi) #3

I created a container having two java applications .I used supervisor to control them.Now I want to allocate say cpu or memory to each of them as per the need.Can I allocate it .is it possible to allocate resources to diff. applications within a container . can u plz explain?

(Sven Dowideit) #4

not at the Docker level - to do that, you would put the applications into separate containers, and set the constraints on each container.