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" ||…
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…
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…
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…
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…
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…
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?
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…
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…
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…
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…
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…
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…
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…
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"…