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.

  • Connecting local cassandra cluster with docker container
  • Why ansible keeps recreating docker containers with state “started”
  • Docker - Cant access docker port from outside
  • Not able to see STDERR Output with docker
  • Read local file system with Java from Docker container
  • Unable to start mongodb using supervisor file
  • Volume trouble with GitLab docker image on Windows
  • Access an application running in a Docker Container which is running inside an emulated CoreOS in Ubuntu
  • JDBC driver class not loading for JAVA app when it connects to Postgres in Docker
  • Ruby Remote SDK configuration with Intellij broken - workarround?
  • Replacing sbt-native-packager with sbt-docker in Scala Play
  • How to provide certificates to mongod containers on different nodes in swarm cluster for internal authentication?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.