sajad torkamani
On this page

Syntax

docker-compose exec <service> /bin/bash -c "<multiple commands separated by &&>"

Example

docker-compose exec web /bin/bash -c "ls && pwd"
Tagged: Docker

Leave a comment

Your email address will not be published. Required fields are marked *