Run a command on a service. If pwd
is in the build path of one of the
docker-compose.yml
services, run on that service, otherwise ask.
dock-cli run cat /etc/passwd
dock-cli run --service=mysql cat /etc/passwd
--service=SERVICE
(or-s SERVICE
) whereSERVICE
is the name of a service fromdocker-compose.yml
.