Questions tagged [docker-run]
214 questions
2
votes
2 answers
Docker run: invalid reference format error
I am trying to install and run azure cognitive-services Computer Vision Read containers.I am getting this error in cmd
docker: invalid reference format.
See 'docker run --help'.
I tried to run below cmd
docker run --rm -it -p 5000:5000 --memory 7g…

user3863585
- 53
- 1
- 1
- 4
2
votes
2 answers
Unable to port forward with the port range syntax in Docker SDK
I am trying to run a Docker container using Go SDK. From the terminal, I can run the following command with no issues :
docker run -d --memory 1024M --name "cdb1" -p 2001-2006:8091-8096 -p 11210-11211:11210-11211 couchbase
I want to achieve the…

KawaLo
- 1,783
- 3
- 16
- 34
2
votes
2 answers
docker php:7.4-apache container, unable to get the page pull up in localhost
i successfully created a php_apache image by going to the specified directory with following command
docker build -t php_apache
my docker file is
FROM php:7.4-apache
COPY Php_demo_project/ var/www/html/
EXPOSE 80
but while running the image with…

shiva7890
- 41
- 1
- 7
2
votes
1 answer
Cannot run docker images
I install docker community on my new laptop running Fedora 31. I followed the guide given here : https://docs.docker.com/install/linux/docker-ce/fedora/.
All was good until I tried to run the hello-world image or a mysql image. I did this in order…

Azumi
- 155
- 1
- 2
- 8
2
votes
3 answers
Detect if docker ran successfully within the same script
My script.sh:
#/bin/sh
docker run --name foo
(Just assume that the docker command works and the container name is foo. Can't make the actual command public.)
I have a script that runs a docker container. I want to check that it ran successfully…

Raj
- 3,637
- 8
- 29
- 52
2
votes
1 answer
Docker Run Failed Due to --log-opts
I am running a docker run command to spawn a new container. The command I gave:
docker run -h 'activemq1' --net bridge -m 20g --env-file /opt/dockerenv/activemq-1/env.txt -p 8161:8161 -p 61613:61613 -p 61614:61614 -p 61616:61616 -p 1616:1616 -p…

randytan
- 1,029
- 5
- 23
- 52
2
votes
0 answers
How to push a shared volume or shared image to ECR
Right now I have this in a Dockerfile:
ENV NLTK_DATA /nltk_data
RUN python3 -m nltk.downloader -d /nltk_data all
this Python library has several gigs of data. I don't know need an extra 5 GBs in each Docker image I publish to Amazon ECR. Is there…

Alexander Mills
- 90,741
- 139
- 482
- 817
2
votes
1 answer
Docker run command to achieve few steps with a single line of command
I am trying to run a docker command for achieving following steps with a single line of command.
A) Pulling a docker image,
B) Then starting the container,
C) Do a volume mount of a directory from host to launched container,
D) And then gives scan…

Vizag
- 375
- 2
- 6
- 22
2
votes
1 answer
Docker image having apscheduler does not run at all
I am new to docker, so bear with me on this.
I have a app.py file, which simply uses apscheduler to print a sentence on the console. I have followed the structure from the official guide for the python file. When I run the file on my console, it…

harvpan
- 8,571
- 2
- 18
- 36
2
votes
1 answer
Mounting multiple volumes present in Json file as List
I would like to mount the multiple volumes of folders in the docker run command. But it is getting failed while creating the container using script.
The volumes folder names are fetched from the json file.
When i tried separately as
docker run -it…

scott
- 35
- 5
2
votes
2 answers
How to inspect the fs of a running Docker container
Is there a way to inspect a running Docker container? E.g., inspect the filesystem using a shell, etc?
To inspect an image, we could using docker run /bin/bash but I am looking to inspect a running container, not an image.
note that docker…

Alexander Mills
- 90,741
- 139
- 482
- 817
2
votes
1 answer
Prevent container from exiting, conditionally
I have this entrypoint in a Dockerfile:
ENTRYPOINT ["r2g", "run"]
and I run the resulting image with:
docker run --name "$container" "$tag"
most of the time, I want the container to exit when it's done - the r2g process is not a server, but a…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
1 answer
error mouting a container volume in docker
I'm new to docker and following through their getting started tutorial in the docs. I'm currently at the part where I need to mount a volume in order to persist data between container reruns. But when I try running the command docker run -dp…

Echo
- 521
- 5
- 16
1
vote
1 answer
docker run --env-file /path/to/file.env fails with "no such file or directory"
I'm trying to run a docker image on a Debian server. The preproduced image has been pulled from Docker Hub.
The cmd line is (stripped to the bones):
sudo docker run -d -p 8190:433 --env-file /path/to/file.env my-image
/path/to/file.env is similiar…

Recurs1on
- 39
- 1
- 5
1
vote
2 answers
I can't run docker on CMD: saved file tree to doc-filelist.js Copied JS to doc-script.js Compiled CSS to doc-style.css
I don't know why, but I've installed docker using npm (i've installed the app too).
I'm on a mac air M1
And when running any docker command (run), i've got this message (example with rabbitMQ):
docker run -it --rm --name rabbitmq -p 5672:5672 -p…
user13906062