Linked Questions

2 votes
1 answer
4k views

I want to write the equivalent of the following in docker-compose.yaml. How can I do that? docker run -it myImage
Pero122's user avatar
  • 1,432
1 vote
0 answers
30 views

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 ...
ٍSofyan Mahmoud's user avatar
15 votes
4 answers
14k views

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.. ℹ 「...
Mr. Learner's user avatar
22 votes
2 answers
37k views

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 ...
user avatar
26 votes
1 answer
52k views

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 ...
jcarlosweb's user avatar
9 votes
4 answers
5k views

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 ...
SpaceTrucker's user avatar
  • 13.7k
4 votes
2 answers
5k views

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 = ...
Shikloshi's user avatar
  • 3,842
5 votes
2 answers
8k views

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 ...
kumarmo2's user avatar
  • 1,413
4 votes
2 answers
14k views

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 ...
The Fool's user avatar
  • 21.2k
2 votes
2 answers
6k views

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 ...
Whack's user avatar
  • 153
3 votes
2 answers
5k views

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/...
Sachith Muhandiram's user avatar
3 votes
2 answers
3k views

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. ...
VivekDev's user avatar
  • 26.1k
2 votes
1 answer
3k views

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(&...
ebuzz168's user avatar
  • 1,244
2 votes
1 answer
3k views

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> ...
Neil Gaetano Lindberg's user avatar

15 30 50 per page