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…
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.
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…
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…
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,…
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.
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…
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…
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…
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…
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…
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…
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…
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 …
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 ? …