🐳 🐙 Docker Compose Tip #81 The Compose equivalent of docker run -it: services: shell: image: alpine command: sh stdin_open: true # = -i tty: true # = -t Pair with `docker compose run` to actually type into it. lours.me/posts/compose-tip-081-tty-stdin-open/ #Docker
Docker Compose Tip #81: tty and stdin_open for interactive containers
Why interactive services in Compose need both tty: true and stdin_open: true — the Compose equivalent of docker run -it.
lours.me