sajad torkamani

Syntax:

docker compose exec <service-name> <cmd>

Example:

docker compose exec php ls -la

As a specific user

docker compose exec --user=<user-name> <service-name>

Leave a comment

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