Questions tagged [docker-cli]

39 questions
1
vote
1 answer

Docker: how to display all the references of an image by its id?

I know the ID of a Docker image. I would like to list all the references (names) that point to that image (or even if it has no references at all). Despite docker image has many filtering capabilities I have not found how to filter the output to…
dolmen
  • 8,126
  • 5
  • 40
  • 42
1
vote
0 answers

Why the Size getting from 'docker image inspect' is not the same with 'docker image ls'

first I using 'docker image inspect' command to get the size of my image , the Size is 2773668963 Byte. Then I get the size using 'docker image ls', it shows 2.77G. But the 2773668963 Byte convert to GB is 2.58G.
houweilong
  • 46
  • 2
1
vote
1 answer

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 tested that working on my system through the debugger and…
Brijesh Shah
  • 573
  • 6
  • 18
1
vote
1 answer

See if a Docker Container Exists With a Specific Name

I am trying to find if a Docker Container with a specific name exists, but I seem to be unsuccessful. I have found multiple answers from other posts, the most notable one being this one, but I cannot seem to reproduce their success. Their answer…
Revvz
  • 455
  • 1
  • 6
  • 14
0
votes
2 answers

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 docker pull namespace/repo:....-* and so on. Is there…
EliasV
  • 8
  • 6
0
votes
1 answer

why docker start command starts containers in detached mode by default

I have used run command in docker cli to so when i used the command docker run --name ubuntu ubuntu it simply exists because it has no ptty and input output connection and we can attach our terminal using -it flags but when we try to start docke…
gilf0yle
  • 1,092
  • 3
  • 9
0
votes
2 answers

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) => [api internal] load .dockerignore …
0
votes
0 answers

Getting the following error ' unauthorized: authentication required ' when i try to pull an image in docker

After installing the docker desktop on windows 10 i tried to pull the node image using the following command docker pull node, and that's what i get: C:\Users\vPro>docker pull node Using default tag: latest latest: Pulling from…
kazuha
  • 1
  • 3
0
votes
1 answer

Docker "-v " is not recognized as an internal or external command

I am trying to trigger Neoload Test through Azure Devops Pipeline, below is what I have tried so far Added "Docker CLI installer" task to the pipeline Added command line task with below code docker run --rm \ -v…
Vishal Chepuri
  • 306
  • 5
  • 26
0
votes
1 answer

How to prune old docker images, but only for a selected container?

We know that docker image prune has a --filter argument that can be used to select (and remove) images older than a given number of hours (e.g.--filter "until=7*24h"). We also know that docker images has a similar --filter argument that supports a…
mirekphd
  • 4,799
  • 3
  • 38
  • 59
0
votes
0 answers

Running container fails with failed to add the host cannot allocate memory

OS: Red Hat Enterprise Linux release 8.7 (Ootpa) Version: $ sudo yum list installed | grep docker containerd.io.x86_64 1.6.9-3.1.el8 @docker-ce-stable docker-ce.x86_64 …
hpaknia
  • 2,769
  • 4
  • 34
  • 63
0
votes
0 answers

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 CLI working so that I can get an interactive…
0
votes
1 answer

get image ids that not have any running container in docker cli

Is it possible to output the list of image ids that the container is not currently running? This command prints the id list of all the images in the output, but I only want the images that do not have an active container. docker images -q Finally,…
0
votes
0 answers

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 information is available for any further builds. How can this be…
moz8
  • 311
  • 1
  • 2
  • 9
0
votes
1 answer

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 desired private key file to id_rsa it works, so I know…
gfree
  • 479
  • 7
  • 16