I have docker images like this
user/image:1.0
user/image:2.0
user/image:2.1
.
.
user/image:2.9
user/image:3.0
I want to delete images from user/image:2.1 to user/image:2.9 USING CLI by calling docker api.
Basically I want to delete an image from…
I'm trying to access Docker remote API from within a container because I need to start other containers.
The host address is 172.19.0.1, so I'm using http://172.19.0.1:2375/images/json to get the list of images (from host,…
Following the docs at https://docs.docker.com/v1.7/reference/api/docker-io_api/#list-library-repository-images I'm having some problems on returning the list if images to several repositories. Not sure if there's something missing, or is there any…
I use docker-compose to create a "park" of container inter-linked. Nothing special here, I have API/Frontend/Backend etc.. There is my docker-compose.yml :
version: "2"
services:
api:
build: ./deimos_api/docker
ports:
…
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#Client.DiskUsage.
Taking a look into the code,…
Not sure if this should be happening, I have a docker compose file that uses several containers, two of these containers have configuration files (nginx being one of them) and are defined in the compose file.
However when I use portainer with the…
I am playing around with Docker buildx to build some images for linux/arm/v7. However, I would like to do it programmatically. I know that there is an HTTP api to interact with the Docker daemon for standard functions, however the Docker docs do not…
I'm trying to make requests to the Docker API remotely.
I have the docker engine running on virtual machine, and I'm making the requests from docker containers.
Firstly, I've done this to make the Docker daemon listen on a specific IP and…
For Docker images that come straight from Docker Hub, I can retrieve the current list of tags for an image by hitting their repository API. For example, https://registry.hub.docker.com/v1/repositories/python/tags will give me a list of tags that can…
I'm using the Docker SDK for Python to push a local image repository into a Docker Registry (DockerHub in my case.)
I use the "push" method on "client.images" described on documentation here.
Unfortunately all published repositories are public.…
I have been trying to call docker from my Node.js application, and to do so I am using node-docker-api as described in the npm module documentation https://github.com/AgustinCB/docker-api. To test if I am able to interact with docker from Node.js I…
Disclaimer:
On a old machine with Ubuntu 14.04 with Upstart as init system I have enabled the HTTP API by defining DOCKER_OPTS on /etc/default/docker. It works.
$ docker version
Client:
Version: 1.11.2
(...)
Server:
Version: 1.11.2
…