49 questions
0
votes
1
answer
43
views
docker context create ecs - requires exactly one argument error
Update 2025. All the older posts are currently not working with the newer version of Docker.
I am in Windows 11 Pro (not using WSL2).
Docker Version
Client:
Version: 28.2.2
API version: ...
0
votes
1
answer
130
views
Which docker CLI command uses the proxy setting in ~/.docker/daemon.json
Which docker CLI commands will use the proxy configuration in the ~/.docker/daemon.json?
{
"proxies": {
"default": {
"allProxy": "http://DAEMON.com:3128&...
0
votes
1
answer
145
views
Scalable method to find the cause of a data leak in docker images folder (/var/lib/docker/overlay2 >> docker system df)?
After some change made to docker build scripts used in Jenkins pipelines and/or a Docker upgrade I've started experiencing serious image data leaks. They manifest themselves in an unstable, constantly ...
0
votes
1
answer
94
views
Why does a docker cli command exit with status 1 on a SIGTERM signal?
When I run a docker CLI command and send a SIGTERM signal to the process running the docker command, I would expect the process to exit with status 143 representing the SIGTERM but it actually exits ...
0
votes
0
answers
507
views
Docker image push failed with EOF / Broken Pipe / Closed Connection error
I've tried to push the docker images to the remote repository. But every operation gets failed.
Either I get EOF exception like below
My-MacBook-Pro-2 producer % docker push <awsAccountId>.dkr....
1
vote
1
answer
122
views
docker version command shows server version as "library-import"
I am trying to upgrade docker-engine to 23.0.0 as a part of buildroot installation. I have upgraded all the prerequisite packages i.e golang, containerd, docker-cli, runc, etc to the required higher ...
1
vote
2
answers
2k
views
Docker pull image, match tag by regex/wildcard
I'm using an image that sometimes has a rolling version change (namespace/repo:...-1 -> -2) and they also delete the old version. I am trying to pull their image but a regex doesn't work. I tried ...
0
votes
2
answers
548
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
353
views
How to remove Cursor Position ANSI escape code from `HijackedResponse` in Go?
I am trying to exec (interact with) a docker container, with Go.
This is the code I am using:
func (docker *Docker) redirectResponseToOutputStream(outputStream, errorStream io.Writer, resp io.Reader) ...
1
vote
1
answer
466
views
How to find active docker images and volumes?
I can see docker disk using the docker system df command:
$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 31 1 12.86GB 12.81GB (99%)
...
0
votes
0
answers
373
views
How to run CLI on docker desktop on windows11
I am new to docker world. I have installed docker desktop for windows on my win11 machine.
When I run docker version. I get this below information.
Can someone please guide me on how I can get docker ...
3
votes
0
answers
356
views
Printing the endpoint of the current Docker context
I am using Docker CLI.
I want to print the current Docker endpoint according to the current Docker context.
Here is the output structure:
$ docker context ls --format '{{ json . }}' | jq
{
"...
5
votes
1
answer
1k
views
docker ps command's filter with NOT condition
I am using minkube as docker engine. So I can get the many container instances related minikube containers with 'docker ps' command. I want to see the containers without them.
minikube containers's ...
0
votes
0
answers
60
views
How to make sure DockerVersion is available for docker inspect
I am building docker images in another docker container (dind container). I see that the newly built docker image does not have the "DockerVersion" attached. I want to ensure that this ...
4
votes
1
answer
3k
views
Windows Docker Cli - The request is not supported
I'm trying to get the docker cli working on Windows. I've followed the steps from https://lippertmarkus.com/2021/09/04/containers-without-docker-desktop/, but when I execute docker run hello-world I ...
0
votes
1
answer
621
views
specify the ssh private key file when using the -H option in docker
I am using the -H option to specify a remove host when running a docker command. However, I am trying to specify a private key file but am unable to figure out if that's possible. If I rename my ...
0
votes
2
answers
3k
views
Not able to exit from interactive mode of docker start
I started a container using the below command connecting to linux server using putty.
docker start -i <containerid>
but I am not able exit from it and get back to command line, without closing ...
5
votes
0
answers
496
views
Show intermediate images in Docker Desktop (Mac and Windows)
I am new to Docker, but I am confused about how the docker images ls -a behaves differently in Docker desktop. Unlike when running in linux it does not show intermediate/dangling images, but it only ...
6
votes
2
answers
10k
views
Docker command not working in Git Bash on Windows (exec: "com.docker.cli": executable file not found in %PATH%)
I have Docker Desktop for Windows and Git (including Git Bash) installed on my computer. The docker command works in the Command Prompt and in Powershell, but not in Git Bash. When I run the docker ...
2
votes
0
answers
657
views
Docker: Unable to mount volume
I am trying to mount the volume on my customized image.
docker run --rm -v models:/volumes/models <image-name>:latest
or
docker run --rm <image-name>:latest
Its throwing same error for ...
-1
votes
3
answers
2k
views
How to see docker image layers when image tag is not present
I was trying various options of "docker image history" command to see the image layers used to build the image on my local machine.
There is a nginx image on my system which has no tags ...
1
vote
1
answer
3k
views
Connect local SQL Server database from the containerized Asp.net Core Application
I have a very simple "hello world" kind Asp.net Core API Application (swagger included) where I click one API Controller and it fetches the data from the database and returns as JSON. I have ...
0
votes
1
answer
205
views
How to bind a host directory to docker container via docker CLI?
I'm trying to bind a host directory to a mssql docker container and have the following [bash] script:
#!/bin/sh
IMPORTDIR=$(cd $(dirname $0); pwd)
DATADIR=${DATADIR:-/tmp/db/}
set -xe
docker run --...
0
votes
1
answer
405
views
How To Remove Anonymous Image In Docker? [duplicate]
So, I want to create an image for my app using
docker build .
But I forgot to give it a name and the name became <none>. When I tried to remove this with docker image rm <none>
The output ...
4
votes
1
answer
12k
views
What are the possible formats of the DOCKER_HOST URLs?
Remote docker servers can be reached by the docker cli by settings the DOCKER_HOST environment variable.
Mostly, tcp://<hostname-or-ip>:<port> or sometimes ssh://<hostname-or-ip>:<...