Is there a way to disallow other docker containers using the same CPU?

So it’s easy to tell Docker which CPU a container can use:

docker run --cpuset=7 some_container_name

But this command can be run multiple times and all these processes share the same core. Is there a way to give a container exclusive access to a CPU and error out if anyone else tries to use it?

  • Database Fails to Start - Host Directory as a Data Volume
  • how to install libcontainer docker in place of lxc-docker
  • Docker container not accessible in host machine
  • Can ping intranet from host, but not from a container
  • How to check the status of an image using docker-java library
  • Docker is not adding a network shared folder as a data volume
  • What is the difference between the template section in replicator.yml and pod.yml in Kubernetes?
  • How to bind a shared directory from container to host in Docker
  • share windows folder (other than c/Users/) with docker container (using docker windows client)
  • What is the docker daemon version on Vagrant provisioner?
  • Docker compose doesn't recognize 'env_file'
  • Run spark-shell inside Docker container against remote YARN cluster
  • One Solution collect form web for “Is there a way to disallow other docker containers using the same CPU?”

    No, this isn’t a feature of Docker. It would need to be done at a layer above Docker (like Kubernetes or ECS). But it would also be fairly easy to implement this yourself.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.