Questions tagged [docker-api]

Use this tag with the Docker Engine API.

Docker runs as a client-server accepting request via the Docker Engine API.

Image

189 questions
0
votes
1 answer

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) { if (container.State == "dead" ||…
zkatancik
  • 1
  • 3
0
votes
0 answers

Copy files from host to docker container using docker API

Anybody know about, How to copy files from host machine to docker container using docker API? or Anyone knows, How to use this API? -> https://docs.docker.com/engine/api/v1.41/#operation/PutContainerArchive In which format I have to upload the files…
Manoj M
  • 19
  • 4
0
votes
0 answers

How can I copy files from system to Docker container using docker API?

I am creating a web project using java. Here I am downloading a file from web and I must need to transfer the downloaded file to the docker container. I am using the docker API PUT…
Manoj M
  • 19
  • 4
0
votes
1 answer

What is the Docker URL on a proget instance

We are using Proget as our Docker Repository of choice and we are running into size issues rapidly. There isn't a good mechanism to prune pre-releases or old images that are no longer needed like there is for other artifacts. I am using…
ewassef
  • 286
  • 2
  • 13
0
votes
1 answer

Kubernetes Node unable to access Docker Private Registry

I've setup kubernetes cluster which has 3 worker node with docker private registry service. The master node is able to login into Private Registry, but worker nodes can't login due to 503 Service unavailable. There is no error log in the Private…
0
votes
1 answer

How to mimic 'docker service ps' on a multi host swarm using dockerode or docker api?

I'm trying to use dockerode to access the Docker API. My goal is to get container data for all containers in the multi node swarm. It appears that docker.listContainers( {all: true } ) is scoped to only returns containers running on the calling…
Jack Murphy
  • 2,952
  • 1
  • 30
  • 49
0
votes
1 answer

Docker API is always returning empty JSON even when there are images in the server

When I do "docker images" in my server, there are multiple images coming up. The same when tried to access through an api "curl http://localhost:2355/images/json" returns []. Does anyone know why is this happening?
0
votes
0 answers

Docker API Push from Mac os

I want to push an image from my local machine to a remote private Docker registry, but I need to do it as part of a Gatling perf test (using Scala), it means, using the Docker API, I've found some documentation on how to compose the request, but I…
0
votes
1 answer

Docker API V1.40 how to Create Service And connect it to the swarm overlay network for communication with other stack points

Scenario is: I already have a docker stack in a swarm, the overlay network name is xxx_default (xxx is the name of stack), I want to create a new service and let it to communicate with other services which are in stack. from the command line this…
Arash
  • 281
  • 3
  • 12
0
votes
0 answers

How to print `bash -xc` commands when using Docker Go SDK?

I am trying to print Bash commands themselves from inside Docker using Go SDK. The following works: docker run ubuntu /bin/bash -xc "echo test echo hello " and prints the following results: + echo test test + echo hello hello However, when perform…
Gasim
  • 7,615
  • 14
  • 64
  • 131
0
votes
0 answers

How to forbidden docker run command in docker daemon also how to restrict individual user access to docker daemon

Objective: I have 200+ projects using docker builds they run docker in their own docker daemon.To reduce cost i setup a central docker build server where i have to allow all projects to build docker images securely Description I created the setup…
0
votes
0 answers

Curl call failling when made with chai

I have an endpoint inside a docker container. When I call the endpoint from postman it works as intended. When I call it from node.fetch from another container it also works but when I call it from another docker container using chai, I get the…
lucas rodriguez
  • 980
  • 2
  • 8
  • 20
0
votes
1 answer

trying to use $(command) inside docker sdk entrypoint

so as the title says, I'm trying to execute a simple command inside entrypoint using golang docker sdk (docker api). func RunBatch(imageName, containerName string, entrypoint []string, volumes []string) string { ctx := context.Background() c…
CallMeLoki
  • 1,281
  • 10
  • 23
0
votes
1 answer

In Docker service creation API endpoint, what's the purpose for Command and Args parameters?

There's two distinct parameters in the /services/create endpoint, called Command and Args. The description says: Command (array of string) – the command to be run in the image Args (array of string) – arguments to the command I was puzzled by the…
Ale
  • 1,998
  • 19
  • 31
0
votes
0 answers

volume shared between docker containers

Im trying to create a container from another container using the docker api v1.24. I have managed to get the container created and started by using this line of code: exec(`curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json"…
lucas rodriguez
  • 980
  • 2
  • 8
  • 20