Home > front end >  Docker compose exec into container while using profiles
Docker compose exec into container while using profiles

Time:07-02

Docker-compose introduced the --profile flag and I am testing it out. Realized that running docker-compose --profile testprofile exec -it app /bin/sh doesn't work.

Does anyone know how to fix this?

PS. Running docker exec -it container_id works.

CodePudding user response:

The solution was to use the v2 command: docker compose without a hyphen. Guessing since profiles is a more recent feature.

  • Related