facelordgists
10/31/2018 - 11:59 PM

Terminal: SSH into docker-compose service container.md

Terminal: SSH into docker-compose service container.md

See: https://docs.docker.com/compose/reference/exec/

While in the same folder as a running docker container execute the following command:

docker-compose exec wp bash

For a much crappier shell, type this: docker-compose exec wp sh

in this example wp is the service defined in the docker-compose.yml

docker-compose exec <service> bash