Is there a way to launch an interactive shell in a container using only Docker Compose? I tried something like this in my docker-compose.yml:
myapp: image: alpine:latest entrypoint: /bin/sh
When I launch this container using docker layout, it will exit immediately. Are there any flags that I can add to the entrypoint command, or like an additional parameter for myapp, to run as an interactive shell?
I know that there are docker command options for this, itβs just curious if only Docker Compose can be used.
shell docker interactive docker-compose
drubb Mar 27 '16 at 16:25 2016-03-27 16:25
source share