Questions tagged [docker-command]
52 questions
0
votes
2 answers
Docker: can a cmdline argument be appended to a shell built-in command args?
I want to create a docker image with a cmdline-specifiable exit code.
From this question, I learned that I must use exit as an argument to sh because it is a shell built-in command, not an executable: How to make a docker container exit with a…

StoneThrow
- 5,314
- 4
- 44
- 86
0
votes
0 answers
Cannot execute docker inspect inside Jenkins job
I need to execute docker inspect from a Jenkins pipeline to get the health status of a container. I tried the following in my pipeline script:
def containerHealth = sh(
script: "docker inspect --format='{{json .State.Health.Status}}' db",
…

Erred Occuror
- 39
- 5
0
votes
1 answer
How to concat arguments to an existing Dockerfile CMD?
Suppose we have a Dockerfile with some CMD and we produced and image from it. Now suppose that we write a docker-compose and one of the services is built from that image.
What I want to do is running the same command but concatenating my own new…

IsaacLevon
- 2,260
- 4
- 41
- 83
0
votes
1 answer
How to pass ' -search.maxUniqueTimeseriesi' flag to in victoriametrics?
As the database got bigger we faced this problem:
the number or matching unique timeseries exceeds 300000; either narrow down the search or increase -search.maxUniqueTimeseries
The Docs show a solution:
On large databases you may experience…

Hassan
- 36
- 5
0
votes
0 answers
connect EHOSTUNREACH 172.24.0.2:27017 docker-compose
I am currently unable to connect to mongo when I run docker-compose, I keep on getting the error below
connect EHOSTUNREACH 172.25.0.2:27017
Here is my docker-compose.yml file
version: "3.4"
services:
app:
container_name: checki
…

Fehmy
- 65
- 10
0
votes
1 answer
Can't remove old Docker Networking Settings
I hope you can help.
I had an old docker image that was configured for networking exposing port 8082. I am using this image as my base image to created a new container but I can't seem to get rid of the old networking settings.
The 8082 ports are…

WallyKaye
- 3
- 2
0
votes
0 answers
update a docker container GPUs
I'm working with my team on a machine with 4 GPUs, we want to use Docker containers, is there a possibility to update a container GPUs for example:
container #1 has 2 GPUs and container #2 has 2 GPUs, now we want to remove 1 GPU from container #1…

Walid Bousseta
- 1,329
- 2
- 18
- 33
0
votes
1 answer
Dockerfile not being found in MERN application
I know that there has been others who have asked this question on here before, however, I have gone through them and have tried the suggestions. I believe that its a complex issue because everyone's files look different and varies from the other…

UI Developer
- 167
- 6
- 16
0
votes
1 answer
Docker enabled usernamespace, container starting to fail
OS: CentOs
When i am enabling the docker namespace, i am running into the bellow error while running container
# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull…

Hackaholic
- 19,069
- 5
- 54
- 72
0
votes
0 answers
CLient.timeout execeeded while awaiting header in windows 10 while installing postgress image in docker
I am new to Docker.
I am encountering below error while executing below command in windows 10
docker-compose up
I tried below command and tried to install again but still facing the same error
docker system prune -a
docker-compose.yml
…

smp97
- 63
- 6
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
Difference between docker container commit and docker commit command
What is the difference between the following two commands:
docker container commit
docker commit
I read the documentation for both the commands but couldn't found any difference between the two commands(Also both the commands contain the same…

Kapil Khandelwal
- 1,096
- 12
- 19
0
votes
1 answer
Unable to delete unwanted docker images
I want to remove all the unwanted docker images and containers from my system's C: drive. Currently system running out of memory. I had used the commands but it's showing the following error:
error during connect: Post…

Riby Varghese
- 101
- 1
- 9
0
votes
0 answers
Error response from daemon: the daemon on this operating system does not support exporting Windows containers
Is there another way to transport a container image between 2 private hosts, without using docker hub?
I am running docker Desktop 2.1 on windows 10 (latest version).
Update
Note: I look for a solution for windows containers, running on windows 10…

MiguelSlv
- 14,067
- 15
- 102
- 169
0
votes
2 answers
AWS ECS how to execute aws-ecs-tools-defaults.json file
In visual studio 2017, it generates aws-ecs-tools-defaults.json file after image is published first time to AWS ECS.
I wonder is there any aws CLI or docker command to run this file. I know I do it from visual studio again but command line should be…

Shwe
- 455
- 5
- 11