Questions tagged [docker-run]

214 questions
0
votes
1 answer

Docker namespace, docker on virtualbox, mirror environment

Let's assume scenario I'm using a set of CLI docker run commands for creating a whole environment of containers, networks (bridge type in my case) and connect containers to particular networks. Everything works well till the moment I want to have…
0
votes
0 answers

Node Js project with Docker throwing an error of no such file or directory /var/www/package.json

I'm new to Docker and following some tutorials. I'm trying to run my node js(express) project with docker volume on Windows 10 machine, here is what I have tried docker run -p 8080:3000 -v /$(pwd):/var/www -w "/var/www" node npm start However, this…
Divyang Desai
  • 7,483
  • 13
  • 50
  • 76
0
votes
2 answers

Docker define more than one default command in Dockerfile

If I have a Docker file that has at the end: ENTRYPOINT /bin/bash and run the container via docker run and type in the terminal gulp that gives me running gulp that I can easily terminate with Ctrl+C but when I put gulp as default command to…
Jimmix
  • 5,644
  • 6
  • 44
  • 71
0
votes
1 answer

How to get files generated by docker run to host

I have run docker run to generate a file sudo docker run -i --mount type=bind,src=/home/mathed/Simulation/custom_desman/1/Strains/Simulation2/Assembly,target=/home/mathed/Simulation/custom_desman/1/Strains/Simulation2/Assembly…
wkde
  • 453
  • 3
  • 13
0
votes
0 answers

Docker Run commands

When I am trying to run the below docker run command on our linux servers docker run --name test-image -d -p 9081:8080 -v /usr/Jenkins2/container:/var/jenkins_home docker.io/jenkins It shows flag needs an argument: 'p' in -p See 'docker run…
Abhilash
  • 15
  • 5
0
votes
1 answer

How to pass arguments to the docker run command dynamically

I have a docker file like this and I have to pass the arguments to docker run command dynamically FROM ubuntu:14.04 ENV IRONHIDE_SOURCE /var/tmp/ironhide-setup RUN apt-get update && apt-get install -y openssh-server supervisor cron syslog-ng-core…
Madhavi Kota
  • 13
  • 1
  • 3
0
votes
1 answer

Docker run image

So my program has a condition like While(not 'e'){ ask the user to input a string } So when I build an image for my program and try to run it via docker run I run into an infinite loop without even getting a chance to enter in my input. I am…
Shivangi Singh
  • 1,001
  • 2
  • 11
  • 20
0
votes
1 answer

Docker Entrypoint Error with --user option on docker run

I discover this problem with a docker run when i want just that my container write as not root files. When i use this kind of command (where the entrypoint is overided) i don't have any problem : docker run -u `id -u $USER` --entrypoint bash -it…
DalinDad
  • 103
  • 1
  • 14
-1
votes
2 answers

How to run a bash script during docker run?

After building the image I am executing the below command to containerize the docker image: sudo docker run -d -p 8080:80 --env-file /home/test/localwork/0014-test/dockerBuildScripts/scripts/env_variables.list test:1.0 I have a bash script that…
dockerLearner
  • 49
  • 2
  • 9
-1
votes
2 answers

Copy a file in container on docker run

I have a container, and i have a json file where is some information to start my api. The problem is that i need to deploy mutiple container with different json file So here is my question as we do the COPY in dockerfile is there a way to copy a…
-1
votes
2 answers

Docker run not recognizing --rm

I am trying to set up a docker container that automatically deletes itself when done. I see there is a command to do this built into docker with the --rm flag. I have my image and can build a container and run a job from an azure agent in it. The…
-1
votes
1 answer

Python docker container shuts down immediately after finishing running the app, even if specified to stay in -d -t

I have a dockerfile FROM python:3 WORKDIR /app ADD ./venv ./venv ADD ./data/file1.csv.gz ./data/file1.csv.gz ADD ./data/file2.csv.gz ./data/file2.csv.gz ADD ./requirements.txt ./venv/requirements.txt WORKDIR /app/venv RUN pip install…
Dasph
  • 420
  • 2
  • 15
-1
votes
3 answers

How to create image from dockerfile without starting the container

I have a dockerfile that is suppsed to start the tomcat. I want to create and not run the image from that dockerfile so that in docker images I can see the image. docker run -it logs me in to container but I dont want to create container and log in…
solveit
  • 869
  • 2
  • 12
  • 32
-1
votes
1 answer

Docker command 'docker rm -vf $(docker ps -a -q)

just a quick question as I am learning docker and doing labs: I have learnt that to run the same command for all/many docker containers that after the command you can use $(docker -a -q) I know -a is to call ALL containers in all states, but what…
-1
votes
1 answer

Access host shell from inside the docker container

I have a docker based application written in Java which calls a shell script to collect data. I want to add a few commands in this script to collect host machine/VM data like below : firewall-cmd --list-all >> firewall.txt journalctl >>…
darecoder
  • 1,478
  • 2
  • 14
  • 29
1 2 3
14
15