My actual question is, how to get specific version of go-lang docker client? The latest version I can find is v17.03.2-ce which is a year or older. I want to use docker 1.37 which has TaskLogs. But could not find one with this specific version. If I…
I am using docker api to create containers, networks, services etc but my requirement is that I want my public facing container to communicate with another container running on the same network. For that to happen I can use container names as the…
I started using the Docker API in python and ran into a time execution issue.
When running the following code, it takes 15 seconds to build a single network.
def createDockerNetwork():
nb_nw = 20
logging.info("*** Creating bridges: ")
for i in…
I am trying to build an application that can control dockers containers hosted on Docker for windows.
The application is built on top of docker-java library and it works fine.
I tried to host this application on docker itself. Hosting was OK. The…
I'm trying to build an image of Docker through the API. I have my context in a TAR file containing the Docker file and more files and folders.
The Dockerfile has several "COPY" commands for files and folders that should be placed in the container.…
I'm working on a project with Python(3.6) in which I need to implement Docker Hub API to create a repository on user's docker hub account and push his docker image.
Real Scenario: User will provide his source code along with Dockerfile, his username…
I'm working on a project in which I need to authenticate a user and create his repository(public) on Docker hub. I have googled a lot and explore various APIs docker offer but couldn't find any solution and example.
I need to build it in Python 3.
I have the following requests to get a bearer token from the Docker Hub API and then use that token for a GET request to the given endpoint:
#!/usr/bin/env bash
raw_token="$(curl…
I have a ruby script running on
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
all running on a windows 10 pro 64 bit box.
The docker .exe client installed with docker connects properly to
DOCKER_HOST=tcp://localhost:2375
and connects and runs properly…
As I understand from Docker API reference if I have a build context for my new image, I have to create a tarball and send an URI via remote param. It's really inconvenient for me because I already have everything on the same host as the docker…
I have the following code to build an image from a .tar file that contains a Dockerfile.
os.MkdirAll("configs/container",0755)
tar := new(archivex.TarFile)
tar.Create("configs/container/conf.tar")
tar.AddAll("configs/configdir",…
docker version showing correct api version for both client and server when i run inside python it is throwing error as below.
# docker version
Client:
Version: 1.12.6
API version: 1.24
Package version:…
At the moment of writing, docker checkpoint feature is still in experimental phase so there is no official (HTTP) API documentation. Nonetheless, there is an endpoint on the docker daemon that can accept an HTTP request, as it is the one that docker…
I am trying to enable the docker rest API and then access it from my local machine. I have docker setup on an ec2 instance. I edit the ExecStart line in my /lib/systemd/systemd/docker.service
ExecStart=/usr/bin/dockerd -H fd:// -H…
I'm new to Docker and I have some difficulties to understand how I should use it.
For now, I'm wondering if that makes sense to attempt sending commands to a docker machine on my computer from the client side script of a javascript web app using an…