I want to execute a command that uses commands from multiple containers.
E.g., I want to execute a backup script that used psql and pg_dump commands.
docker exec db_backup pg_dump
failed to exec: exec: "pg_dump": executable file not found in $PATH
docker run has an option --link. Is there a similar option for exec?
To clear this up, there are 3 containers:
- my_app
- db
- db_backup
I want to use pg commands located in db from my db_backup scripts.
my_appcontainer related to the question?my_appis a running application that is usingdbcontainer.