Questions tagged [docker-run]
214 questions
1
vote
0 answers
How to run vsftpd as non root in an ubuntu container?
I am trying to rebuild bogem/ftp to make the container run as non root.
I created my own repo where you can find all the files.
I build it locally:
docker build -t bram_ftp:v0.4 .
Sending build context to Docker daemon 8.704kB
Step 1/17 : FROM…

bramvdk
- 1,347
- 4
- 21
- 31
1
vote
2 answers
Trying to mount a host volume on a Docker container on Windows. What is the source folder relative to?
I'm having trouble on trying to mount a volume to my docker container.
Here is my project structure
cloudRun
distService/
index.js
Dockerfile
package.json // THIS IS THE package.json FOR THE DOCKER IMAGE
package.json // THIS IS MY…

cbdeveloper
- 27,898
- 37
- 155
- 336
1
vote
1 answer
Jenkins Docker pipeline plugin with docker run
I have a Jenkins pipeline with the Docker Pipeline plugin installed.
I would like to run a docker container with the plugin using the following command:
docker.image("$uri/$name:$tag").run("-it --name myWebApp -v /myData:/mywebapp/data")
However,…

gtx911
- 1,189
- 4
- 25
- 46
1
vote
1 answer
$cat file command is not working when passing as a environment file to Docker run command
I have a very big file which needs to be passed as an Environment variable to Docker run command in linux ec2 platform.
My ideal docker command looks like this :
docker run -p 6080:9000 -e KAFKA_BROKERCONNECT=url:port -e KAFKA_TRUSTSTORE="$(cat…

DEEPAK R.L.
- 19
- 2
1
vote
0 answers
Custom docker run output in detached mode
I just wondering if it was possible to print Dockerfile's CMD output when I run docker run ....
I setup jenkins on an image and it would be convenient to have the defautl admin password displayed directly when running the image. Here is what I have…

blondelg
- 916
- 1
- 8
- 25
1
vote
0 answers
Docker --device vs -v in docker run
I was trying stuff with Docker today and by mistake, I mounted my /dev/dri folder inside the container with -v instead of --device. However, this worked the same.
Therefore, my question is: what's the difference between --device and -v? And when…

Olivier
- 11
- 4
1
vote
1 answer
Docker Publish Option
I am attempting to get a Vue app running locally inside a Docker container and having an issue publishing to a specified port.
Here is my Dockerfile
FROM node:lts-alpine
RUN mkdir -p /app
COPY . /app
WORKDIR /app
RUN npm install
RUN npm run…

Brad Chandler
- 45
- 7
1
vote
2 answers
RUN Instruction in building Docker Image
Below is my Docker file
ARG tag_info=latest
FROM alpine:${tag_info} AS my_apline
ARG message='Hello World'
RUN echo ${message}
RUN echo ${message} > myfile.txt
RUN echo "Hi Harry"
When i run docker image build -t myimage:v1_0 - < Dockerfile
the…

Harry S
- 63
- 1
- 10
1
vote
1 answer
How to attach two devices to docker using docker run --devices?
I need to attach /dev/video0 and /dev/ttyUSB0 to container.
Both docker run --device=/dev/video0 (...) and docker run --device=/dev/ttyUSB0 (...)
work but how to attach them both at the same time?

Lord_JABA
- 2,545
- 7
- 31
- 58
1
vote
1 answer
Best way to pass a file to docker run
I need to do a docker image to process data from a file.
How can I do an image to process a file at runtime?
Thanks

Marcos Vidolin
- 186
- 4
- 21
1
vote
1 answer
How to run TensorFlow Serving as an Azure Container Instance and pass a docker command
I usually run TensorFlow Serving Docker image using this command:
docker run -p 8500:8500 \
--mount type=bind,source=/mnt/docker/models,target=/models \
--mount type=bind,source=/mnt/docker/configs/models.config,target=/models/models.config \
-t…

Syed
- 340
- 1
- 3
- 13
1
vote
2 answers
How to execute a docker-run command from C++ program?
I want to execute "docker run -it Image_name" from a C++ program. Is there any way to achieve this?

Shiva Sagar
- 21
- 2
1
vote
1 answer
How can one prevent variable substitution/expension in AWS Fargate container definition command
Locally when running docker with docker run I pass some arguments like:
docker run -p 8080:80 -e "SERVICE_B_URL=somehost.co.uk" -d mynginx:latest /bin/sh -c "envsubst '\${SERVICE_B_URL}' < /etc/nginx/conf.d/default.template >…

David
- 7,652
- 21
- 60
- 98
1
vote
1 answer
Containers not running in detached mode
Today I tried to run my containers in detached mode and I faced some issue.
When I ran the command docker container run -d nginx, the image of nginx got pulled and the output of the container was not shown as it was in detached mode.
Then I ran the…

Nikhil Bansal
- 89
- 10
1
vote
1 answer
Docker run fails error ' Extra argument XXX'
I am trying to run my local docker file/docker compose setup.
I get the following error.
docker-compose.exe up
Starting docker_sshd_1 ... done
Attaching to docker_sshd_1
sshd_1 | Extra argument /usr/sbin/sshd.
docker_sshd_1 exited with code…

nelaaro
- 3,006
- 5
- 38
- 56