199 questions
0
votes
0
answers
60
views
Docker `COPY *.xyz` behaviour difference between CLI and API
Take a (trivial) Dockerfile:
FROM scratch
COPY *.xyz .
I would expect this to include any xyz files if present.
So testing with no xyz files - it builds fine locally:
% docker build .
{...}
[+] ...
-2
votes
2
answers
606
views
How to get details about a docker image with latest tag? (Base os, Version)
I am collecting some data for my project.
Is it possible to know what is the latest tagged images' version. Without having the image through the api. I want to keep a set of images data, and run ...
0
votes
1
answer
2k
views
How to use docker api in dind
I'm using docker in docker. I ran:
docker run --privileged -it docker:dind sh
I already found that I must unset DOCKER_HOST env error-during-connect-get-http-docker-2375-ping to use inner docker.
But ...
1
vote
1
answer
90
views
Streaming a tty docker container [closed]
I need to implement the functionality of streaming the docker terminal of a container, for this I used ContainerLogs and collected logs from the container line by line.
However, when the container ...
0
votes
1
answer
124
views
Docker API build does not reuse layers from cache
I have a Dockerfile, and when I run docker build from the command line it reuses unchanged layers as expected. However, when I start the build using the Python API, it always rebuilds all steps. Any ...
0
votes
1
answer
221
views
chef docker-api cookbook fails, error malformed header
chef-clients are unable to run docker cookbook api commands like docker_registry, docker_image and docker_container. The docker cli commands in the recipe are working fine and are able to connect and ...
1
vote
1
answer
477
views
Docker is running a container but no output from the API shows them
I am trying to build a nodejs dashboard to monitor various things including the docker containers that are running on the local system. The dashboard is installed on the server where docker is running....
3
votes
1
answer
186
views
`docker system df` vs `/system/df` (docker api endpoint)
I am writing a program in Go to get the total disk usage in GB from my docker host machine. For that, I am using the func DiskUsage() from go lib:
https://pkg.go.dev/github.com/docker/docker/client#...
0
votes
0
answers
271
views
Remote Docker only Binds to tcp6
So I wanted to enable remote docker, to use the API for the daemon from outside the host.
My /etc/docker/daemon.json looks like this:
{
"hosts": ["tcp://0.0.0.0:2375", "unix:...
0
votes
0
answers
2k
views
Problem running Docker with com.github.dockerjava
I am trying to use docker and run my image with this Java Library: com.github.dockerjava
Here is the code :
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command....
3
votes
0
answers
101
views
Is there a way to find the digest of a docker image with a given tag on a specific date?
I am trying to get the corresponding digest of a docker image with a given tag on a specific date (since the image under the tag might have been overwritten since then), such as getting the digest of ...
0
votes
0
answers
67
views
How get list Docker private docker organization images with docker api v2
i am tried this not working am able list my public repository images but origination images
curl -L -s 'https://hub.docker.com/v2/namespaces/devops/repositories/core7/tags?page_size=1024'
0
votes
1
answer
682
views
Docker push on local registry gets stuck
I'm trying to push an image to a local docker registry deployed with docker-compose the following way:
services:
docker-registry:
image: registry:2
restart: unless-stopped
environment:
...
2
votes
1
answer
639
views
How to run docker mounting volumes using Docker engine SDK and Golang
I have being reviewing the docker engine SDK documentation related with running Docker with Golang (https://docs.docker.com/engine/api/sdk/)
I would like to run a container(which is well documented) ...
0
votes
1
answer
771
views
Where are the manifest files of docker images stored on private registry?
I have a Harbor registry containing docker images on AWS s3, what is the path for the manifest file for each image?
1
vote
0
answers
213
views
Backup PGSQL in a container using Golang docker SDK
On host machine I have docker-compose stack that have a service called
transactions-db
its a PostgreSQL container
I want to create a backup service using Golang to be able to create .sql to be used ...
1
vote
0
answers
113
views
Open terminal windows using Go and Docker SDK
I'm using Go to create a kind of custom client for Docker. It parses a YAML file, creates the containers with some hard-coded options and then creates terminal windows in order to be able to interact ...
0
votes
1
answer
1k
views
Artifactory - Docker Registry _catalog call , returns blank
We have an Artifactory configured as a docker registry and when call is made to https://artifactory/v2/_catalog, the catalog call returns blank, rather then listing docker image repositories.
...
0
votes
0
answers
513
views
I can't reach my containers using docker java api client ( windows 10 ) timeout reached
I need to list all my containers which are up with docker compose file in windows .
this is my code :
public void listContainer() {
DefaultDockerClientConfig config
= ...
0
votes
0
answers
155
views
manipulate docker container from through another container using java docker api
I have a spring boot app dockerised named monitormaster
I need to connect to another container host to do some manipulation on it like restart , stop , start ...
I have problem in docker api with the ...
0
votes
0
answers
998
views
Docker Registry v2 authentication using OAuth2 does not return refresh token when `access_type=offline`
By following command snippet in https://docs.docker.com/registry/spec/auth/oauth/ as below and set access_type=offline, refresh_token is not present in returned response.
curl -iX POST https://auth....
2
votes
0
answers
338
views
How to configure memory when creating container in spotify-docker-client
I followed spotify-docker-client user manual and github issues to configure specific memory but i got this error {"message":"Minimum memory limit allowed is 6MB"}
i have spring ...
1
vote
2
answers
2k
views
Act Not able to Use Docker API
I am trying to locally test github actions with the open-source Act utility.
"Think globally, act locally"
I have copied the git hub repository for which i want to check github action and ...
0
votes
1
answer
197
views
Docker rm returning ContainerNotFoundException after successfully removing container
I am using a C# API that talks to DockerEngine (Docker.DotNet) to do some things, but notably, in this case, removed a stopped container. Here is my code:
foreach (var container in RunningContainers)
{...
1
vote
1
answer
1k
views
docker stats --one-shot explanation
I am trying to implement an api endpoint for docker stats --one-shot but I simply do not understand the difference between --one-shot and --no-stream. The API documentation is located here but doesn't ...