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
2
votes
1 answer

Send Docker Context as Tar with Go Client can't find Dockerfile

I am using the Go Docker Client to attempt to build an image from a Dockerfile whose contents are defined in code. According to the Docker Daemon API Documentation The input stream must be a tar archive... ...The archive must include a build…
northsideknight
  • 1,519
  • 1
  • 15
  • 24
2
votes
1 answer

Is there an API for fetching stopped containers list

I need to get all the stopped containers list via an API. but I got only commands to get the list. If APIs are not available, suggest how we can create an API with docker commands. so whenever I hit the API, I can get the list of stopped containers.
Vasanthi
  • 37
  • 6
2
votes
1 answer

Query on kubernetes metrics-server metrics values

I am using metrics-server(https://github.com/kubernetes-incubator/metrics-server/) to collect the core metrics from containers in a kubernetes cluster. I could fetch 2 resource usage metrics per container. cpu usage memory usage However its not…
Venkat Teki
  • 2,233
  • 4
  • 21
  • 28
2
votes
1 answer

"TLS wrong version number" with OpenSSL 1.1.1

I try to use Docker Registry REST API V2 on a local Registry instance. Run Registry: docker run -d --network host --name registry registry:2 (docs). Command for checking Registry: $ curl https://localhost:5000/v2/_ping curl: (35) error:1408F10B:SSL…
Aleks Ya
  • 859
  • 5
  • 15
  • 27
2
votes
1 answer

Docker SDK for Golang can't connect to daemon inside overlay network

I have a docker swarm, and a container inside of an overlay network on that swarm. The container has an app written in golang that interacts with the Docker API by creating a container and starting it. When I run my golang app on the host machine,…
JamesIsSoPro
  • 95
  • 1
  • 6
2
votes
2 answers

How to connect to local Docker service using `Docker.DotNet` library?

How can I connect to my local Docker service using Docker.DotNet library in Linux environment (considering that I am using .Net Core 2.0)? I think it is somehow related to /var/run/docker.sock file, but I could not figure out how to achieve that.
Mohammed Noureldin
  • 14,913
  • 17
  • 70
  • 99
2
votes
1 answer

Issue while using Docker API for GO - cannot import "nat"

I am trying to use the docker API for golang that is available from github.com/docker/docker/client. So far I am able to start the containers on the port that is predefined during image built. I am trying to map the port during runtime using the…
2
votes
0 answers

Could not push image: denied: requested access to the resource is denied

I'm using docker-java to create an image on a docker host which is running on a Ubuntu 16.04 VM. The image creation works just fine and I can list the image created via docker-java. But when I try to push the image to a private registry(Harbor) I…
Vivek Shankar
  • 770
  • 1
  • 15
  • 37
2
votes
4 answers

starting container using docker API

I am trying to deploy a container using Docker REST APIs. I am able to create a local image and create a container. However at the time of starting the container, I am getting the following error: {"message":"starting container with non-empty…
Pankaj Garg
  • 893
  • 2
  • 8
  • 15
2
votes
2 answers

No 'Access-Control-Allow-Origin' header present - Docker remote API

I keep getting CORS error while using the Docker remote API. As the Docker documentation mentions, I did set the flag: "api-cors-header" : "*", I still do not see the header Access-Control-Allow-Origin: * set on the response headers. I am using…
sam
  • 568
  • 1
  • 8
  • 16
2
votes
1 answer

Docker Service updatedAt timestamp

Docker Swarm API client has the following meta information for a service: Meta.UpdatedAt Is this the timestamp of last user-initiated update (e.g. change service configuration) OR is it a timestamp of any change on service, that even Docker Swarm…
igr
  • 10,199
  • 13
  • 65
  • 111
2
votes
1 answer

Where are the docker Remote API logs stored?

I have Docker on OpenSuse Leap 42.1. I have setup Remote API. Where can I see the logs/STDOUT of the Remote API service? Specifically the logs indicating API calls such as GET and POST calls. I checked the docker service logs using: journalctl -u…
mumshad
  • 409
  • 1
  • 7
  • 13
2
votes
3 answers

How do i expose the Docker Remote API on Centos 7?

On ubuntu i can go into /etc/init/docker.conf and put in DOCKER_OPTS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock' to get the json data to display on my browser but how can i do it for Centos? I have tried creating a file in…
user3412172
  • 489
  • 2
  • 6
  • 10
2
votes
1 answer

Docker Remote API with Weave

I am trying to create a docker container using Docker Remote APIv1.23 I am not able to create docker container in Weave. I have started the weave-proxy with the following command: weave launch-proxy -H tcp://0.0.0.0:12375 -H …
rishabh.bhardwaj
  • 378
  • 4
  • 12
2
votes
3 answers

DOCKER_TLS_VERIFY, DOCKER_HOST, and DOCKER_CERT_PATH on Ubuntu

If DOCKER_TLS_VERIFY, DOCKER_HOST and DOCKER_CERT_PATH are not set on Ubuntu, what are the defaults to export the vars by myself (I'm not using Docker Machine)? ps aux | grep "docker daemon" returns this: root 1828 2.4 0.5 764036 44804 ? …
Alexander Zeitler
  • 11,919
  • 11
  • 81
  • 124