docker exec mycontainer ls /app

Category: Docker

docker exec mycontainer ls /app

Run a single command in a running container

Runs a single command inside a running container without opening an interactive shell.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.