Questions tagged [dockerpy]

The Python API client for Docker

The Python API client for Docker https://github.com/dotcloud/docker-py

191 questions
0
votes
1 answer

Saltstack docker.login returns APIError: 500 Server Error?

I was created a private repository at https://hub.docker.com and docker login working fine. I am trying to make it via saltstack and login using this link. salt '*' docker.login salt '*' docker.login…
Gangaraju
  • 4,406
  • 9
  • 45
  • 77
0
votes
1 answer

Jenkins Docker plugin is not showing the Tag-on-completion checkbox

I am using the Jenkins Docker Plugin. I am supposed to see the Tag-on-completion checkbox with so that the images will be retained in docker. Reference: https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin However in my Jenkins, do not see the…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
1 answer

Data Container In Docker : Data Not Populated

Here is my question. I need to read data from a volume inside my container. Instead of using a ADD command in my docker file to copy this data directly inside my container I need to look for this data from a data placeholder, i.e a container that…
Karthik
  • 315
  • 1
  • 4
  • 17
0
votes
3 answers

Ansible error: KeyError: 'ApiVersion'

I'm using Ansible 1.7 (devel) and Docker 0.9.1 build 3600720, and I'm stuck with this error: failed: [myapp.com] => {"failed": true, "item": "", "parsed": false} invalid output was: Traceback (most recent call last): File…
ChocoDeveloper
  • 14,160
  • 26
  • 79
  • 117
-1
votes
1 answer

filter ip adress of docker container via ansible

I'm trying to get an ip adress from an docker container w/ ansible-module docker_container_info. Following is my suspection how it would be get excluded from the result. - name: Get infos on container docker_container_info: name:…
TheRojam
  • 121
  • 6
-1
votes
1 answer

What is the Docker SDK for Python library returning from APIClient.inspect_distribution()

The metadata returned from here: https://docker-py.readthedocs.io/en/stable/api.html#docker.api.image.ImageApiMixin.inspect_distribution Contains a digest that doesn't match anything else I can find from the docker API. What exactly is the source of…
north.mister
  • 500
  • 1
  • 7
  • 24
-1
votes
1 answer

docker python exec_run() not working when running the container.exec_run("stress -cpu 1 &)

I am trying to run this command with the docker python sdk but I am not sure I am passing the commands in properly. How would I run the command "stress --cpu 4 &" using the docker python sdk? m = container.exec_run("stress --cpu 4 &")
swalga
  • 11
  • 3
-1
votes
1 answer

How pull and delete all images except lastest with python docker sdk?

It needed to run fresh docker image but without download it every time and delete outdatedd images. The algorithm is: docker_client.pull() docker_client.prune() docker_client.run() The problem is - prune which deletes already downloaded image. If…
Cherry
  • 31,309
  • 66
  • 224
  • 364
-1
votes
1 answer

How to get path of sub directory of a temporary directory in Django

I need to pass path of subdirectory of a temporary directory to another function. Real scenario: User will upload a zip or tar archive then it will be extracted inside a temporary directory, now I need the path of that extracted directory. is there…
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
-3
votes
1 answer

What is docker inspect -f '{{ .Mounts }}' e2c657561363 equivalent in docker-py?

What is docker inspect -f '{{ .Mounts }}' e2c657561363 equivalent in docker-py?
Aaditya R Krishnan
  • 495
  • 1
  • 10
  • 31
-3
votes
1 answer

Use Linux env variables in python program

I'm trying OS env variables to be used in python code. Below is example. Env Variable export DOCKER_HOST=10.0.0.5 export PORT=1002 Python code import os import docker host = os.environ['DOCKER_HOST'] port =…
Swaroop Kundeti
  • 515
  • 4
  • 11
  • 25
1 2 3
12
13