Questions tagged [docker-run]
214 questions
0
votes
1 answer
How to run script in docker container with additional capabilities (docker exec ... --cap-add ...)
How can I run a script in a docker container with additional capabilities, such as NET_ADMIN?
I'm testing out some commands that I'd like to run in a docker image that require the NET_ADMIN permissions. For example, this works:
docker run --rm -it…

Michael Altfield
- 2,083
- 23
- 39
0
votes
1 answer
Docker run /bin/bash
When I exec the commmand, it occur this error
docker run -it --entrypoint=/bin/bash ld_mmdet:2.4.0 /bin/bash
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat…

nwpuxhld
- 85
- 1
- 1
- 10
0
votes
1 answer
Why can we have more time -p options in docker run command line
I have seen a docker run command line as following:
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
This command launch the image rabbitmq:3-management
With the option --it, it runs in the interactive mode, so…

Kan
- 487
- 7
- 19
0
votes
1 answer
Install .NET Runtime on .NET Core 3.1 Nano Server Docker Image
I have a .NET Core 3.1 console app that uses the Microsoft.NET.Sdk.WindowsDesktop project SDK because it references Geometry3D in System.Windows.Media.Media3D.
I would like to run this in a Docker container on Windows Nano Server, but I receive the…

Anthony Sneed
- 703
- 6
- 19
0
votes
1 answer
Run Laravel docker image with exposing ports -p
I have a laravel app but I can't make it run with docker run command. The last two instructions are
EXPOSE 9000
CMD ["php", "artisan", "serve","--port=9000"]
I am trying to make it run trying with:
docker run -p 9000:9000 my_image:latest
docker…

Jorge
- 333
- 1
- 5
- 17
0
votes
2 answers
How to launch graphite docker container locally?
I am following this wiki to setup some performance numbers for my testing I am doing. I needed to setup graphite to see my numbers.
So I ran this command as mentioned in the wiki on my mac -
docker run -d --name graphite -p 80:80 -p…

dragons
- 549
- 1
- 8
- 24
0
votes
0 answers
How can I expose a docker port when running a container?
I'm using the following Docker version
Docker version 19.03.8, build afacb8b
I'm building my image using the following command
docker build -f my.Dockerfile .
which tells me
Successfully built 367dc883875e
How do I run the above image and expose…

satish
- 703
- 5
- 23
- 52
0
votes
1 answer
Docker cant´t find, pull images : server mis behaving
Docker toolbox installed for windows 10 Home Edition. Docker toolbox for this OS is installed. But when I can start learning the program, it gives me these errors. I cannot create an image or run an image. At the end of each error message it tells…

David Sabillon
- 11
- 4
0
votes
0 answers
How to solve this error in docker toolbox running on windows 7 I tried configuring the virtual box by adding shared folder
$ docker run -p 3000:3000 -v "/app/node_modules" -v "$(pwd):/app" 4a1158abb76e
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /app/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open…

Deepesh Acharya
- 1
- 2
0
votes
1 answer
Not able to access the container over localhost
Docker beginner here.
I created a simple asp.net web application , which on run shows me the default page of application.
Using the docker build command, I create a image out of it and further using the docker run command docker run -d --name…

Ranjit Mattamal
- 5
- 3
0
votes
0 answers
running Laravel docker image with database service
I have a dockerized Laravel project that I am trying to move to production but I don't know how to run the image establishing connection to the database. Every time I ran the image I received this message because I can't connect to the…

Jorge
- 333
- 1
- 5
- 17
0
votes
0 answers
Closed - Not able to reproduce docker run--> docker exec in a Ubuntu image from official Docker documentation
This will create a container named ubuntu_bash and start a Bash session:
docker run --name ubuntu_bash --rm -i -t ubuntu bash
This will create a new file /tmp/execWorks inside the running container ubuntu_bash, in the background:
docker exec -d…

apl
- 57
- 1
- 12
0
votes
1 answer
docker run fails with "docker: Error response from daemon: Address already in use."
When I try to execute:
docker run --name openldap --detach osixia/openldap:1.3.0 --network=development
it fails with "address already in use"
If I run dockerd with the -D flag i can see it requesting an ip6 address, fe80::42:242:ac11:2, before it…

iou1
- 43
- 7
0
votes
1 answer
Docker image builds and runs without errors, yet I can't connect to it on specified port
I'm using teh following version of docker ...
localhost:client davea$ docker -v
Docker version 19.03.5, build 633a0ea
I have the following Dockerfile
FROM node:10-alpine AS alpine
WORKDIR /app
# A wildcard is used to ensure both package.json AND…

Dave
- 15,639
- 133
- 442
- 830
0
votes
1 answer
Why docker RUN command causes exec error anytime?
I installed docker on Ubuntu 16.04 32 bit system.
Then in example DockerFile, when i type RUN command with anything, i get error:
DockerFile:
RUN ls
Then i run build Docker command:
sudo docker build - < Dockerfile
And i receive at this…

changtung
- 1,614
- 15
- 19