What is the interaction of Docker's CpuShares between containers?

If we have 3 Docker containers running a 4 vcpu AWS instance and two containers say “CpuShares:0” and the third container says “CpuShares:2” how does that work?

Does the “CpuShares:2” container have access to 2 or all 4 cpus? What does “CpuShares:0” mean?. Does the “CpuShares:2” container basically just get priority over the other containers?

  • Kafka - Docker - Error when sending message from Host to Container (Batch Expired)
  • When deploying a Docker container to AWS, do i need to deploy my own reverse proxy as well?
  • How to enable Docker API access from Windows running Docker Toolbox (docker machine)
  • Create a ASP.net Core project with Docker Support for Windows
  • Docker: How to deal with restarted nodes?
  • Does docker-compose up destroy old database?
  • Thanks.

  • What alternatives are there for Docker on Solaris 11.3?
  • Codeship: Deploying to EC2 Container Service from Docker Image
  • Getting Unsupported protocol scheme error with docker in pycharm
  • Docker out of space with vfs driver
  • How can a bash script restart a process on non-0 exit while sending signals to child
  • How does docker run differ from running a command from a shell within the container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.