Questions tagged [docker-run]
214 questions
0
votes
1 answer
Keep a bash script running when running a Docker container
I'm trying to establish an SSH tunnel connection from inside a Docker container.
I created a brief shh-tunnel.sh script that allows the connection:
ssh-tunnel.sh
ssh -4 -q -f -T -M -N -L 127.0.0.1:5433:credentials:more_credentials USER@HOST
Then I…

Laura
- 1,192
- 2
- 18
- 36
0
votes
1 answer
Docker named volumes not being created
I have a docker container that I am attempting to mount named containers to, however they do not appear to be getting created or mounted.
$ sudo docker run --network=host the_container \
-v file_storage:/root/file_storage \
…

sinavix742
- 90
- 6
0
votes
1 answer
(InvalidParameterCombination) when calling the RunInstances operation: The parameter groupName cannot be used with the parameter subnet
Following the example in AWS-CLI documentation I tried running an EC2 instance using AWS CLI but got the error
An error occurred (InvalidParameterCombination) when calling the RunInstances operation: The parameter groupName cannot be used with the…

zenkavi
- 41
- 4
0
votes
2 answers
Run docker image without port forwarding
I am running a custom image (based on the docker image Locust) locally using the below command
docker run -p 5557:5557 my-stress-test:0.1
My dockerfile looks as below
FROM locustio/locust:latest
COPY ./ /mnt/locust
CMD ["-P", "5557", "-f",…

Vishnukk
- 524
- 2
- 11
- 27
0
votes
4 answers
Reset localhost:80 port
running containersall containers
I've recently started learning docker and after following the tutorial, I ran the following command
docker run -d -p 80:80 docker/getting-started
and open up port localhost:80 and saw the docker getting started page.…

Elroy Toscano
- 362
- 1
- 4
- 11
0
votes
0 answers
How to keep a docker container running some background processes
I have a python script that launches multiple programs in different screen sessions (gnu screen: terminal multiplexer) and exits.
The screen sessions keep running in the background.
Everything works fine when I run the script directly on my host…

aahnik
- 1,661
- 1
- 11
- 29
0
votes
1 answer
docker run multiline cmd in container from win cmd line; cmd or powershell not executed stays in multiline mode >>>
I'm trying to run a multiline curl cmd in a docker container and it always leaves the cmd in multiline mode. I've tried using backtick in powershell and ^ windows command for line continuation with the same results
Powershell version
docker run…

billSt3
- 85
- 5
0
votes
2 answers
Could you clarify when "-it" should be used in a "docker run" command?
If I use
docker run myimage /bin/bash -c "pwd"
or
docker run -it myimage /bin/bash -c "pwd"
the results are the same. Then, what is the sense of "-it"? I learned that "-i" is for interactive, "-t" is for tty. But those are abstract nouns for me.…

zell
- 9,830
- 10
- 62
- 115
0
votes
2 answers
Cypress could not find spec files
I'm trying to run cypress tests inside a docker container.
It works when my test spec files are located inside ./cypress folder as cypress looks for default folder(cypress/integration) but it could not find spec files when i use different test spec…

itgeek
- 549
- 1
- 15
- 33
0
votes
1 answer
How to use bash commands alongside Docker restart policies?
In a ROS project, I have the following bash script that I use to run a docker container:
#!/bin/bash
source ~/catkin_ws/devel/setup.bash
rosnode kill some_ros_node
roslaunch supporting_ros_package launch_file.launch &
docker run -it \
…

Pyy
- 327
- 6
- 23
0
votes
1 answer
Can I override a folder in a Docker image with a volume from host?
Given a Dockerfile like this:
WORKDIR /
COPY ./folder ./folder
# OTHER COMMANDS...
On my dev environment I would like to override the ./folder that was copied to the image, by using the real ./folder on my machine, so I can use nodemon from the…

cbdeveloper
- 27,898
- 37
- 155
- 336
0
votes
0 answers
Docker RUN instruction: save result to file
How can I save the result of the RUN instruction to a file?
Dockerfile example:
# code removed for simplicity
# <--- not working, probably because RUN creates a new layer?
RUN tree -a > public/tree.txt
ENTRYPOINT ["dotnet",…

Catalin
- 11,503
- 19
- 74
- 147
0
votes
1 answer
Docker volume does not produce file in local-system
I'm new to docker volumes and trying my best to process the file in docker and save the file in local directory to sync it to AWS S3.
Here is my docker-run command with --volume which is using local-directory path attaching it to container. When i…

Praveen
- 267
- 1
- 5
- 19
0
votes
1 answer
Build or Run docker image error : CreateComputeSystem - Insufficient system resources exist to complete the requested service
i got this error on windows server 2019 standard running docker and no idea how to solve it. Running windows container with process isolation. Memory is always max 40% (32Gb), CPU always below 20% and disks lot of space (250Gb free).
Running an…

Steven J
- 316
- 2
- 14
0
votes
1 answer
'docker run' using mount volume option '-v' with single directory as parameter (no source and destination split with colon mark (":"))
On this page https://mherman.org/blog/dockerizing-an-angular-app/ ,
At some point in this tutorial there is this command to launch the container:
$ docker run -v ${PWD}:/app -v /app/node_modules -p 4201:4200 --rm example:dev.
I don't understand the…

nyluje
- 3,573
- 7
- 37
- 67