Questions tagged [docker-cli]
39 questions
15
votes
2 answers
Docker BuildX image not showing in docker image ls
I am currently trying to build a multi-platform image (x86_64, arm64, armv7, armv6) using BuildKit/BuildX, and it seems to build successfully, but I can't seem to find where the image is located. It doesn't show up changed from my previous build for…

Revvz
- 455
- 1
- 6
- 14
6
votes
1 answer
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 command in Git Bash, I get the following…

PlutoHDDev
- 540
- 7
- 25
6
votes
2 answers
Docker CLI failing to compose with "Additional property postgres is not allowed"
My docker-compose.yml looks like this
postgres:
container_name: postgres-container-1
image: postgres:latest
ports:
- "15432:5432"
When I try to run
docker compose up -d
I get following error
(root) Additional property postgres…

Rouz
- 1,247
- 2
- 15
- 37
5
votes
0 answers
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 lists the images I tag explictly.
To illustrate…

Manuel Pagliai
- 113
- 4
5
votes
1 answer
docker cli swarm package import issues
Im trying to utilise docker/cli client library in my own project to create/manage stacks.
I am however facing issues building the project.
Code below:
package main
import (
"fmt"
"log"
"github.com/docker/cli/cli/command"
…

Zeeshan
- 1,187
- 1
- 9
- 12
4
votes
1 answer
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 name start with 'k8s-bra-bra' so I want to filter…

rura6502
- 365
- 2
- 15
4
votes
1 answer
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 get the following error message:
PS C:\> docker…

andomeda
- 135
- 7
3
votes
1 answer
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://: or sometimes ssh://: is used.
Unfortunately, the docker documentation talks about…

peterh
- 11,875
- 18
- 85
- 108
2
votes
1 answer
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) error {
_, err :=…

Máté Németh
- 92
- 1
- 6
2
votes
0 answers
Docker: mount path must be absolute when using volume
I am on a windows host and using git bash.
My goal is to create an alias for Jekyll on my git bash: run the docker image instead of installing all the dependencies. I also want to store the "gems" in a local docker volume.
I would like to use the…

ThomasMX
- 1,643
- 2
- 19
- 35
2
votes
0 answers
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
{
"Current": true,
"Description": "Current DOCKER_HOST…

Réda Housni Alaoui
- 1,244
- 2
- 15
- 22
2
votes
0 answers
Docker: Unable to mount volume
I am trying to mount the volume on my customized image.
docker run --rm -v models:/volumes/models :latest
or
docker run --rm :latest
Its throwing same error for both commands:
docker: Error response from daemon: OCI runtime…

Sridevi Raman
- 59
- 1
- 4
2
votes
2 answers
Can Docker CLI, Podman and other similar tools have shared local storage for images?
I recently started using podman and realized that images pulled via docker doesn't become available for use to podman and vice-versa. For example:-
If I pull the image using docker CLI, as shown below
docker pull…

Rishab Prasad
- 771
- 1
- 8
- 21
1
vote
1 answer
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%)
Containers 1 0 0B 0B
Local…

Johnny Metz
- 5,977
- 18
- 82
- 146
1
vote
1 answer
How to use io reader client
I would like to copy a zipped file from host machine to a container using go code running inside a container. The setup has go code running in a container with docker.sock mounted. The idea is to copy zip file from host machine to the container that…

BhanuKiran
- 2,631
- 3
- 20
- 36