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

How to use TaskLogs endpoint of docker go-lang API?

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…
wannamit
  • 117
  • 3
  • 9
0
votes
1 answer

Linking 2 docker container together via creating services (swarm mode) by using docker api

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…
0
votes
1 answer

Docker Python API is slow

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…
0
votes
1 answer

Accessing docker API from container

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…
mksoi
  • 131
  • 3
  • 13
0
votes
1 answer

Docker API Build Tar File paths

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.…
0
votes
0 answers

DockerHub API Authentication using Python 3

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…
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
0
votes
0 answers

Authenticate and Repository creation on Docker Hub

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.
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
0
votes
1 answer

Cannot make get request after acquiring Bearer token - 401 error "insufficient scope"

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…
user7898461
0
votes
1 answer

On Windows how do I get rubygem swipely/docker-api to connect with local docker daemon (service)

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…
peterk
  • 5,136
  • 6
  • 33
  • 47
0
votes
1 answer

Docker API: use path as image build context

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…
chingis
  • 1,514
  • 2
  • 19
  • 38
0
votes
0 answers

Golang Docker API reports invalid argument while hitting ImageBuild

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",…
mkreder
  • 57
  • 2
  • 8
0
votes
1 answer

docker api client/server version mismatch?

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:…
0
votes
1 answer

How to execute "docker checkpoint create container_id checkpoint_id" using curl?

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…
Danilo Radenovic
  • 1,019
  • 1
  • 11
  • 23
0
votes
0 answers

Docker : Cannot access remote API

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…
letsc
  • 2,515
  • 5
  • 35
  • 54
0
votes
1 answer

Use a docker sdk to send commands to the docker machine from a web app

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…
yobb
  • 145
  • 1
  • 9