Questions tagged [docker-run]
214 questions
0
votes
1 answer
Sending echo input to stdin to a docker container using docker
Below is my sample c program
#include
int main()
{
int x, y, z;
scanf("%d%d", &x, &y);
printf("%d,%d" ,x,y);
z = x + y;
printf("%d", z);
return 0;
}
I am able to compile the program and…

mounika kommineni
- 75
- 8
0
votes
1 answer
docker container can not connect to local postgres
Can't connect to Postgres from the docker container.
I do not want user docker-compose and create a Postgres container, already got Postgres app running. I think it is a bad idea to container postgres and better use system.
OSX, Postgres10, Flask
I…

Andrew Louis
- 360
- 6
- 17
0
votes
0 answers
No module found(requests) error during docker run
I have created my own image containing my project in an ubuntu system. I was able to successfully build the image. No error showed up build-time. However, at run-time, a python import error is thrown up. The package is "requests". I have tried…

Eswar
- 1,201
- 19
- 45
0
votes
1 answer
How can I build and run docker image using Visual Studio 2019?
I have a Web API app written on the top of ASP.NET Core 3.1 framework that I want to run using docker. When I click "Run" using docker, Visual studio fails and logs the following to the debug-window.…
user12310517
0
votes
3 answers
What happens if I write RUN node index.js instead of CMD node index.js in a dockerfile?
I made a simple hello world node.js application with the dockerfile
FROM node:10
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD node index.js
If I change the CMD to RUN in my dockerfile it still works.
It is…

Debojit Kangsa Banik
- 3
- 1
- 2
0
votes
1 answer
How to derive "docker run" syntax from docker container
I ran a docker run on a docker image with a long convoluted command syntax that I have since forgotton and lost. Is there any way to derive the syntax that ran a container given the container ID?
I know docker inspect can give you information about…

Frak
- 832
- 1
- 11
- 32
0
votes
0 answers
Docker Container Stops immediately after starting using run command
I am trying to run locally on Windows Desktop a micro service in Docker (Windows Desktop Docker) and my docker file content is as below:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0
WORKDIR /app
COPY . .
EXPOSE 80
ENTRYPOINT ["dotnet",…

user9308317
- 1
- 1
- 2
0
votes
2 answers
How bad is it to pipe process to consumer in ENTRYPOINT?
How bad would it be to use something like this in a Dockerfile:
ENTRYPOINT node . | tee >(send_logs_to_elastic_search)
most of the logging solutions require some pretty nasty configuration. The above would be a way for us to capture the logs…
user11810894
0
votes
1 answer
How to capture stdout from docker process and pipe to another using ENTRYPOINT or CMD
I have this:
ENTRYPOINT ["node", ".", "|", "tee", ">(echo 'bar')"]
but it doesn't seem to work, perhaps because tee is not installed in my container.
Is this the right way to do this though? I want to run the container on ECS, send the…
user11810894
0
votes
1 answer
/app/run.sh: line 7: java: command not found while running docker image
I've created an image in docker and having /app/run.sh: line 7: java: command not found
while trying to run this using sudo docker run com.project.question/question:1.0.0
.Here's my…

Jamshaid
- 370
- 2
- 11
- 40
0
votes
1 answer
can't do cd using docker running on Ubuntu container?
When I'm trying to install packages in requirements to the dir '/home/site/wwwroot' I'm getting the following error
/bin/sh: 1: cd: can't cd to /home/site/wwwroot
The command '/bin/sh -c cd /home/site/wwwroot && pip install -r requirements.txt'…

saranraj kumar
- 207
- 1
- 2
- 10
0
votes
1 answer
How to fix docker OCI runtime create failed
I'm trying to start a server in Pterodactyl panel, But when I click the Start button, I got an error in daemon:
Error: (HTTP code 500) server error - OCI runtime create failed: container_linux.go:345: starting container process caused…

Akkariin
- 3
- 2
0
votes
1 answer
Error on zsh: docker: Error response from daemon: invalid volume specification
I have a bash script that composes a docker run command chaining different volumes with -v:
VOL_ONE="-v $PWD/path/one:/home/docker/app/path/one"
VOL_TWO="-v $PWD/path/two:/home/docker/app/path/two"
RUN_VOLUMES="$VOL_ONE $VOL_TWO"
docker run --rm…

Francesco Borzi
- 56,083
- 47
- 179
- 252
0
votes
2 answers
docker volume during docker run
I am trying to mount library present in the container into docker volume during docker run . The command is as below:
docker run -d --name mbus-docker -it --rm --mount source=/mbus/lib/libMurata.a,target=/mbus_volume mbus-docker
I have…

Zaks
- 668
- 1
- 8
- 30
0
votes
1 answer
What's the difference between `docker run -d` and `docker run -dit`?
If I would like to use it as a development environment for Node.js, is it alright to just docker run -d?
Do I really need the below?
--interactive , -i Keep STDIN open even if not attached
--tty , -t Allocate a pseudo-TTY

geoyws
- 3,326
- 3
- 35
- 47