Shin Code log

Logs of solution for code
November 02, 2020

Run command inside a docker-compose image running

A way to execute somethings inside a docker-compose

Run command inside a docker-compose image running

A way to execute somethings inside a docker-compose.
Command: docker-compose exec [image-name] [command]
Example: run "ls" command on "home" folder inside a "web" image which is running

Code:

docker-compose exec web ls