restricting the number of docker containers that can be created from an image

Can we restrict the number of docker containers created from an image ?

For example, lets us take I have an image name called “myuser/XYZ”, the number of containers that can be instantiated should be 10. So system should not allow when the user tries to instantiate the 11th container based on that image.

  • IBM Bluemix: Not able to mount the MongoDB container “/data/db” on the Bluemix host volume
  • Jelastic Docker Nginx LoadBalancing with Horizontal Auto Scaling
  • Why does docker run -t keep the bash process from exiting and stopping the container
  • seamless integration of webpack in symfony-(dev)-docker environment
  • How can I tell if docker has frozen?
  • Jenkins not able to access internet when running as docker container
  • dockerfile npm start with harmony
  • Docker Data Volume Container - Can I share across swarm
  • PHP 7 install on Ubuntu 14.04 now fails due to libssl dependency that cant be resolved?
  • Recommended GCE service account authentication inside Docker container?
  • Docker + JHipster + Memory usage goes up
  • How to use nested docker.image('test_image').inside() in a Jenkins pipeline
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.