Linked Questions
34 questions linked to/from Interactive shell using Docker Compose
2 votes
1 answer
4k views
Equivalent of docker -it flag in docker compose [duplicate]
I want to write the equivalent of the following in docker-compose.yaml. How can I do that? docker run -it myImage
1 vote
0 answers
30 views
Why docker-compose doesn't get me into interactive mode [duplicate]
I need to get into interactive mode using docker compose, I have create a Dockerfile just for testing Dockerfile FROM ubuntu CMD ["/bin/bash"] and used this docker-compose file which ...
15 votes
4 answers
14k views
can't run react app with docker container
I have a react-app, which simple showing hello-world message but I like to run the app throug docker-container but having this problem. After this message, process stopped without running app.. ℹ 「...
22 votes
2 answers
37k views
How to run -it with docker compose?
docker run -idt ubuntu:16.04, after that we can use docker ps to see the container starts. But if use docker compose as next and docker-compose up, we can see docker ps cannot find container, from ...
26 votes
1 answer
52k views
why do i need tty: true in docker-compose.yml and other images do not?
I've been looking for the answer for a while, but I haven't found it and I need to understand before I go ahead with my tests. I am creating an image based on Alpine by installing bash as in the ...
9 votes
4 answers
5k views
How to specify in Dockerfile that the image is interactive?
I have created a docker container that runs a command line tool. The container is supposed to be interactive. Am I somehow able to specify in the Dockerfile that the container is always started in ...
4 votes
2 answers
5k views
Docker logs not showing colors (express + nodejs image)
A petty, yet interesting question (for me): I'm trying to create docker image from a small server( nodejs + express) I wrote. My server code is: var express = require('express'); var Inflector = ...
5 votes
2 answers
8k views
c# Grpc Client Not able to connect to Grpc Server hosted in docker(for windows) container on localhost
I have made a simple Grpc Greeter Service along with a client. When the service is hosted on localhost, client is able to call the rpc and receive the response. But when the Service is running inside ...
4 votes
2 answers
14k views
How to set a docker-compose /bin/bash entrypoint?
I'd like to enter a docker container in interactive mode with the commad /bin/bash using a docker-compose.yml only. There is a similar question here on stack overflow: Interactive shell using Docker ...
2 votes
2 answers
6k views
Why does docker-compose up not work interactively?
I have this docker-compose file: version: "2" services: test: image: python:3 stdin_open: true tty: true container_name: test_c If I just run docker-compose up ...
3 votes
2 answers
5k views
Docker httpd:alpine image exits with code 1
I am trying to run some basic html pages using httpd docker image. Dockerfile FROM httpd:alpine COPY ./views /usr/local/apache2/htdocs/ # where my html pages stored COPY httpd.conf /usr/local/...
3 votes
2 answers
3k views
Why does a container running a console app simply exits after starting
I want to run a simple dotnet core console app in a container interactively. I am not able to do that and the container simply starts and then exits immediately without fully running the program. ...
2 votes
1 answer
3k views
Docker-compose up with input argumen [duplicate]
I'm new to dockers world. I tried to put my script inside docker, my script takes input argument if running directly in a command prompt -- there are two variables inside my scripts that using input(&...
2 votes
1 answer
3k views
Cannot exec into container using GitBash when using Docker Compose
I'm new to Docker Compose, but have used Docker for years. The screen shot below is of PowerShell and of GitBash. If I run containers without docker-compose I can docker exec -it <container_ref> ...