51 questions
0
votes
0
answers
42
views
Dependencies issues in docker container
I'm using a Django Based Web Application. The application is using Multiple containers which includes Redis, Postgres, ElasticSearch, Kibana and Application container. When I run "docker-compose ...
0
votes
1
answer
51
views
How does docker recognize if run -v option refers to host directory or a docker volume?
When executing docker run with option -v a:b, a could refer either to a directory on the host, or a docker volume name. How does docker recognize which one is it?
0
votes
2
answers
557
views
Docker-compose not building up successfully
On running docker-compose up -d --build I am getting the following error:
PS C:\Users\KELLYRYAN\Documents\august-code\drf_course\drf_course> docker-compose up -d --build [+] Building 128.5s (11/18) ...
2
votes
1
answer
3k
views
template parsing error: template: :1: unexpected "=" in operand
template parsing error: template: :1: unexpected "=" in operand
I got the above error when executing the below command in Windows,
docker inspect --format="{{range $key, $value := ....
0
votes
1
answer
531
views
Why container stop after succeful registeration runner?
I want to register gitlab runner once in my docker-compose. yaml. I touch the command in command section to register in non interactive mode.Why container stop after succeful register ...
1
vote
1
answer
3k
views
docker compose | cant run two command using '&&' in command property
I have a docker compose file and in the definition of one of my containers I try to run multiple commands, but when I run two commands one after another, the other command doesn't execute.
I tried ...
0
votes
1
answer
1k
views
How to see all Docker image tags? [duplicate]
Question about Docker
Please tell me how to view the existing image tags through the console before pulling? Or the last 10?
I've seen such a command before, but now I can't find it(
0
votes
0
answers
40
views
Cannot remove or stop docker container
I run a web using sudo docker compose up but it has a container that recreate infinitely. Therefor, I want to remove that container and build it again, but when I run sudo docker container rm ...
0
votes
0
answers
221
views
OSError: Function not implemented - Odoo Docker - command: ["odoo","--dev","xml,reload"]
version: '3.4'
services:
db:
image: postgres:13
ports:
- "5432:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
...
0
votes
1
answer
366
views
Docker Run Image Error no such file or directory
i try to run a docker image with this command:
docker run 7ce2964461cc
but get this error:
docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/...
2
votes
1
answer
126
views
How to pass multiple commands to docker-compose.uffizzi.yml
I need to pass the next command to my service in docker-compose.uffizzi.yml
bundle exec rails db:create db:migrate db:seed && bundle exec rails s -b 0.0.0.0 -p 3000
According to this doc: ...
0
votes
0
answers
307
views
From cache perspective, what is the difference between docker restart and docker-compose restart?
Apologies in advance if these questions are very basic. But I failed to find answers that are on-point:
In terms of clearing the container cache (not policies and not SIGTERM):
1- What is the ...
1
vote
1
answer
2k
views
docker-compose create volume of my app folder and run node command in it
Docker beginner here.
I am trying to set up docker for local development. My ultimate goal is to be able to use "vite" to do hot module reloading development server.
Here's what I am trying:
...
0
votes
2
answers
336
views
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: ...
2
votes
0
answers
229
views
Docker Swarm Scheduling Performance with node.id Constraint
If I created a service with docker swarm specifying e.g. node.id==node42 as a constraint what would happen from the point of view of the scheduling process? The process would be performed entirely ...
0
votes
0
answers
966
views
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 ...
0
votes
1
answer
938
views
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 ...
0
votes
1
answer
1k
views
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 ...
6
votes
2
answers
3k
views
docker ps | show image name instead of ID
When I run docker ps,it shows image IDs in the 2nd column:
But i want it to show image names:
what should I do ?
-1
votes
1
answer
857
views
Docker command 'docker rm -vf $(docker ps -a -q)
just a quick question as I am learning docker and doing labs:
I have learnt that to run the same command for all/many docker containers that after the command you can use $(docker -a -q)
I know -a is ...
0
votes
0
answers
725
views
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&...
0
votes
1
answer
435
views
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 ...
0
votes
0
answers
238
views
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, ...
0
votes
1
answer
140
views
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 ...
1
vote
1
answer
1k
views
How to run curl commands inside kong docker container at startup?
I have setup kong docker container. it's starting with docker compose file:
kong:
image: "${KONG_DOCKER_TAG}"
user: ${KONG_USER}
depends_on:
- kong-database
- kong-migrations
...
1
vote
2
answers
4k
views
Docker pull hello-world showing successful create but when using docker ps or docker ps -a not shoing images
I used docker ps/docker ps -a/docker ps -n 1 all not showing my first image.
But it after I using docker pull hello-world it saying it installed successfully
0
votes
1
answer
2k
views
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: ...
-1
votes
1
answer
5k
views
starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory":
I am trying to build an docker image on centos 7 from SCRATCH. I have performed following steps :
FROM scratch
RUN rpm -ivh https://address/app.rpm
RUN YUM install tools
...
...
CMD ["rpm","start"]
...
0
votes
0
answers
35
views
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
...
0
votes
1
answer
2k
views
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 ...
48
votes
6
answers
34k
views
To run curl command on postman getting error as Error while importing Curl: arg.startsWith is not a function
I have a curl link which is successfully run with terminal but i want to convert it as a POSTMAN request where link is,
curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+...
0
votes
0
answers
448
views
Difference between docker container commit and docker commit command [duplicate]
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 ...
4
votes
1
answer
2k
views
What is the difference between the docker port mapping notations: 5432/tcp vs 0.0.0.0:5432->5432/tcp?
When I call the command docker ps all my running docker containers are listed. Among other things, the port mappings are displayed in the PORTS column.
I can't figure out what the difference is ...
0
votes
1
answer
71
views
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 ...
2
votes
3
answers
3k
views
Docker: Dangling Images
I'm trying to understand the following commands
docker image prune
docker image prune -a
According to the docs
docker image prune: Removes dangling images
docker image prune -a: Removes dangling and ...
-1
votes
1
answer
274
views
Execute two commands using Dockerfile with waits
I have two commands to run in Dockerfile.
One for run tests and generate logs.
Second one for generate html report after execution of the tests.
My Dockerfile looks like this:
FROM golang:1.13
ADD ...
35
votes
7
answers
42k
views
How to execute command from one docker container to another
I'm creating an application that will allow users to upload video files that will then be put through some processing.
I have two containers.
Nginx container that serves the website where users can ...
0
votes
0
answers
780
views
Error response from daemon: the daemon on this operating system does not support exporting Windows containers [duplicate]
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 ...
22
votes
3
answers
100k
views
entrypoint: "entrypoint.sh" - docker compose
There is no such file by name entrypoint.sh in my workspace.
But below instruction in docker-compose.yml is referring it:
builder:
build: ../../
dockerfile: docker/dev/Dockerfile
volumes:
...
1
vote
3
answers
2k
views
Dereference environment variable on parameter expansion in shell script
I am trying to dereference the value of environment variable using parameter expansion $@, but it doesn't seem to work.
I need to call a shell script with certain arguments. The list of arguments ...
1
vote
1
answer
1k
views
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/...
1
vote
1
answer
1k
views
Unable to start the server using docker command - Mount directory -OCI Runtime error
I would like to start the orthanc server based on the below docker command. However when I execute the command, I get the error as shown below.
Please note that both the orthanc.json and orthanc-db ...
1
vote
2
answers
536
views
Issue running docker with command parameter using NPM scripts
I've got a repo with some NPM convenience scripts to run some basic docker commands:
"scripts": {
"build": "docker build -t myreadyapi --build-arg LICENSE_SERVER=1.1.1.1 .",
"prestart": "...
1
vote
1
answer
3k
views
Certain Docker Commands not working in Windows Powershell ISE but working in other Command Line tools
I am exploring docker and I've been using Windows Powershell ISE to run docker commands. I have come across situation where I run certain commands in Powershell but they appear to be stuck, but when I ...
0
votes
2
answers
517
views
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 ...
0
votes
1
answer
2k
views
How to manage nginx docker image?
I'm having another separate issue, but I found a solution for it in the following post. As suggested there, I will need to modify my nginx server by adding the section
http {
## ...
## other ...
1
vote
1
answer
440
views
Unable to deploy the war in docker web-logic container
Created Docker image for Oracle-12.2.1.2.0 image created successfully and running also on https://localhost:9002/console.
Now I want to deploy my war in this container, using following commands ...
0
votes
2
answers
1k
views
Trying to start pm2-runtime with 3 instances for a MEAN application
I am trying to start an existing MEAN stack app in a Docker container by using the following Docker command:
CMD ["pm2-runtime", "-i", "3", "npm", "--", "run-script", "start:prod"]
That command does ...
2
votes
1
answer
1k
views
Issue running command in docker-compose
I'm building an customized Postgresql image in docker compose and following the successful build I'm trying to run a JAR file in the command label of the compose file. Is it possible to run the JAR ...
0
votes
1
answer
3k
views
docker pull command doesn't allow password and always getting Error response from daemon: unauthorized: authentication required
I am going through a unexpected error. I am always getting the error "Error response from daemon: unauthorized: authentication required" whenever I am trying to pull microsoft/mssql-server-windows:...