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.

  • getUserMedia in Firefox in Docker not working when using audio
  • How can I deal with security updates in my docker containers?
  • Docker container not running properly
  • Product Versioning Microservices
  • Is it possible to show the `WORKDIR` when building a docker image?
  • Having issue setting up access token from policy in Vault
  • Can you create Kerberos principals where the hostname is flexible? (Docker)
  • Named pipes in docker container folder mounted to mac os x file system through boot2docker
  • What is the benefit of reverse proxy if we can expose to port 80 directly?
  • docker-compose does not load up data
  • Multiple dockerfiles in one docker or multiple images from one dockerfile
  • GCP logging driver: failed to initialise
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.