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?

  • apt-get fails within container without sudo
  • Which Tensorflow Docker image to use?
  • Elasticsearch 2.0.0 cluster zen discovery in docker
  • Docker Socket.IO only works with docker run -it flags
  • Wifi connection dropped after docker start
  • Can I start a service by env in docker container?
  • Thanks.

  • Docker: Multiple MySQL instances/containers - second slave time out
  • Running nginx as proxy for gitlab in docker
  • Docker building fails randomly with Error mounting
  • Gitlab CI: Docker connect to remote MySQL via SSH Portforwarding before running tests
  • Share and update docker data containers across containers
  • Host volumes / environment variables not available during container build stage
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.