Questions tagged [docker-run]
214 questions
3
votes
2 answers
does docker ignore the -ti flags if -d is used?
I ran this command:
docker run -d -ti foo
it works, but I realized that I probably forgot to remote the -ti part.
I assume that docker ignores those flags if -d is used, does anyone know?
It seems like -ti and -d would contradict each other?
user12834955
3
votes
2 answers
How to override/discover CMD/ENTRYPOINT for base image
Say I have this:
FROM oresoftware/lmx-broker:0.2.1
ENTRYPOINT ['/docker-entrypoint.sh']
if I don't use CMD will CMD default to the value set in the base image? Will my use of ENTRYPOINT override the ENTRYPOINT in the base image? Will my use of CMD…
user11810894
3
votes
1 answer
What happens when you mv a folder that a docker container volume is using?
Say I run a container like so:
docker run -v /host/folder:/data some-image
if we run mv /host/folder /host/folder2, I am sure bad stuff will happen, and the only solution is to stop the container and restart it?

Alexander Mills
- 90,741
- 139
- 482
- 817
3
votes
1 answer
Copy files from container fs to sibling container
Say I am running in a container which was started with:
docker run -v /var/run/docker.sock:/var/run/docker.sock foo
then I launch another container from within the above one:
docker run -v /var/run/docker.sock:/var/run/docker.sock bar
my question…
user5047085
3
votes
1 answer
Running Docker Parent image and Base image on top of parent image
I am new in docker world. So I have existing Dockerfile which somewhat looks like below:
# Base image
FROM
# Install dependencies
RUN zypper --gpg-auto-import-keys ref -s && \
zypper -n install git net-tools libnuma1
# Create temp…

MrSham
- 539
- 3
- 8
- 19
2
votes
2 answers
How to pass docker run arguments in Jenkins?
I am trying to set up my Jenkins pipeline using this docker image. It requires to be executed as following:
docker run --rm \
-v $PROJECT_DIR:/input \
-v $PROJECT_DIR:/output \
-e PLATFORM_ID=$PLATFORM_ID \
…

extraj
- 41
- 3
2
votes
1 answer
docker mount - Error response from daemon: invalid mount config for type "bind"
I am facing an issue with mounting a host directory into docker container with both -v and --mount options.
Using mount:
docker run --mount type=bind,source=/home/myuser/docker_test/out_dir,target=/home/out_dir --user 12345:1000 -it docker-name:0.1…

Raj Malhotra
- 35
- 5
2
votes
1 answer
docker playground: no space left on device in default browser
docker command
$ docker run -d --rm -p 8888:8080 tomcat:9.0
When I use my default browser, I get the error no space left on device.
when I use other browser with different docker account, It works.
$ docker ps
Is the issue with the browser or my…

Always_a_learner
- 285
- 12
2
votes
2 answers
docker-compose "depends_on", but with "docker run"
How can I implement the below docker-compose code, but using the docker run command? I am specifically interested in the depends_on part.
version: '2'
services:
db:
image: postgres
web:
build: .
command: python manage.py runserver…

Oliver Angelil
- 1,099
- 15
- 31
2
votes
2 answers
Docker compose specify container network as host network
What is the docker compose equivalent of running a docker container with network of container === host network ?
docker run --rm -d --network host --name my_nginx nginx
Basically, how to specify the --network host inside docker-compose

Ankit Sanghvi
- 467
- 5
- 18
2
votes
0 answers
laravel with docker nginx php slow response time ttfb 120 seconds
i have a container with php and nginx and a laravel project. it works on production fine. but on my develop environment (kubuntu 21.04) is work slow. every time i send a request (its static and very simple), it takes exactly 2 minutes. (ttfb =…

Mostafa Nobaqi
- 53
- 6
2
votes
3 answers
Adding custom seccomp profile in docker
I am trying to use a custom seccomp profile with docker run command; however, I invoked with the following error-
$ sudo docker run --rm -it --security-opt seccomp=/home/temp/default.json ubuntu
docker: Error response from daemon: OCI runtime create…

user3862410
- 171
- 1
- 6
2
votes
3 answers
Docker is only listening to port 80
I'm learning docker and I'm testing running containers. It works fine only when I run a container listening on port 80.
Example:
Works OK:
docker run -d --name fastapicontainer_4 -p **8090**:80 fastapitest
docker run -d --name fastapicontainer_4 -p…

Guillermo Bastian
- 65
- 1
- 6
2
votes
0 answers
Setting port mapping in docker on Container-Optimized OS
I am trying to setup couchdb on Container-Optimized OS inside Google CLoud Platform. The container needs 5984 port to be redirected to host. I can't make it work with standard container setup, I can't see a place to define custom parameters to…

Piciu
- 43
- 5
2
votes
3 answers
Spring boot apps port mapping in docker container
In my application.yml file, I added the server port on 8080.
server:
port: 8080
Now in my Dockerfile, I am exposing port range 8080-8089.
Here my goal is I will run this image on the different external and internal ports.
My Dockerfile is given…

Md. Sajedul Karim
- 6,749
- 3
- 61
- 87