Interactive shell using Docker Compose #63697
Replies: 1 comment
-
|
In the provided example from the official Docker Compose "Getting Started" guide (accessible at https://docs.docker.com/compose/gettingstarted/), the accompanying docker-compose.yml configuration is as follows:
To access the shell in the redis container:
To access the shell in the web container:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Can I start a live shell in a container using just Docker Compose? I tried using /bin/sh as the entrypoint in my docker-compose file, but the container stops right away. Is there a way to keep it running interactively using Docker Compose? I'm aware of native docker commands, but I want to know if it can be done with Docker Compose alone.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions