Questions tagged [docker-command]
52 questions
47
votes
6 answers
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+json" -X GET -u :…

neha jain
- 471
- 1
- 4
- 5
24
votes
5 answers
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 upload their video files.
Video processing…

Nicolas Buch
- 421
- 1
- 4
- 7
19
votes
3 answers
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:
- ../../target:/wheelhouse
volumes_from:
-…

overexchange
- 15,768
- 30
- 152
- 347
7
votes
1 answer
Docker compose up, retry pull images
We sometimes get Client.Timeout exceeded while awaiting headers errors when running docker-compose up as its pulling images.
Is there a way to get docker-compose to retry when it is pulling an image?

ClickThisNick
- 5,110
- 9
- 44
- 69
4
votes
2 answers
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 ?

radeon 1279
- 41
- 2
4
votes
1 answer
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 between this notation: 5432/tcp and that notation:…

zingi
- 1,141
- 13
- 23
2
votes
1 answer
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:…

Nikolay Ryabov
- 31
- 1
2
votes
0 answers
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 taking into account the constraint or, having…

GBis
- 21
- 1
2
votes
3 answers
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 unused images`
I'm trying to understand the…

Asool
- 13,031
- 7
- 35
- 49
2
votes
1 answer
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 from compose file? My docker-compose file looks…

Mahua Roy
- 21
- 3
1
vote
1 answer
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 changing the order between these two commands, and…

user15937765
- 219
- 1
- 7
1
vote
1 answer
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:
#docker-compose.yml
version: '3.8'
services:
mpvdb:
…

WillD
- 5,170
- 6
- 27
- 56
1
vote
0 answers
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
environment:
KONG_ADMIN_ACCESS_LOG: /dev/stdout
…

Priyanka Wagh
- 615
- 1
- 8
- 17
1
vote
2 answers
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

yuan gao
- 13
- 2
1
vote
3 answers
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 contain environment variables, and the environment…

Abhishek
- 2,543
- 4
- 34
- 46