Home > Software engineering >  Is there a way to structure docker images in different "enviroments"
Is there a way to structure docker images in different "enviroments"

Time:01-26

Im a developer, cyber security researcher, and and tinkerer....i have quite a few images pulled from various sources for various reasons. Is it possible to organize images into something like "categories"? For example, i have reconftw & nikto containers for pentesting, id like to have those in a different folder or environment than my development containers, simply for organizational purposes. Not sure if this is possible. Thanks!

CodePudding user response:

Would tags do the trick? You can have more than one at the same time... https://docs.docker.com/engine/reference/commandline/image_tag/

CodePudding user response:

id like to have those in a different folder or environment

Container images aren't stored in "environments" or "folders". The furthest "namespacing" you'll get is the Docker Registry where you pulled the images from.

All images are stored in the same location on disk for the Docker daemon.


You can setup "projects" using various docker-compose (or Kubernetes) spec files that use different images for different purposes, and those can be stored in folders.

pen-test/
  docker-compose.yml
tinker/
  docker-compose.yml
  •  Tags:  
  • Related