Run multiple bash commands against Docker Compose service
25 October 2023 (Updated 25 October 2023)
Syntax
docker-compose exec <service> /bin/bash -c "<multiple commands separated by &&>"
Example
docker-compose exec web /bin/bash -c "ls && pwd"
Tagged:
Docker
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment