0

I am working with a docker-environment which is used for external testing. The customers depend on the data in the environment so I don't want to pull / up the database container. Is there an option to have a container in the compose-file but restrain it from being pulled?

Otherwise I think my way forward is to remove the container from the compose-file, which could be bad when someone else will troubleshoot the environment and not all required containers are there.

edit: Its around 40 services, so running docker-compose up <service_name> is inconvenient and you might miss something.

beigo
  • 1
  • 2

1 Answers1

0

You can do

docker-compose up --scale serviceToExclude=0

Where serviceToExclude is the container you DON'T want to run.

Schwarz54
  • 964
  • 1
  • 9
  • 18