You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using docker 1.7.0 client.build is unable to fetch local images and tries to download it from the internet. Tested also version 1.2.2 of docker-py and the same issue persists.
Here you can see the output of the test.
➜ devel docker -v
Docker version 1.7.0, build 0baf609
➜ devel pip show docker-py
---
Name: docker-py
Version: 1.2.3
Location: /usr/local/lib/python2.7/dist-packages
Requires: requests, six, websocket-client
➜ devel docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
testing latest 7425392ede6b 27 minutes ago 188.3 MB
ubuntu 14.04 6d4946999d4f 2 weeks ago 188.3 MB
➜ devel python test.py
Output of Client.images():
testing:latest
ubuntu:14.04
Output of Client.build():
Step 0 : FROM testing
Pulling repository testing
Error: image library/testing:latest not found
➜ devel
and here is the simplified version of the test.py
fromioimportBytesIOfromdockerimportClientdockerfile=''' # Shared Volume FROM testing MAINTAINER Gary Servin, garyservin@gmail.com RUN echo "Hello World!" '''f=BytesIO(dockerfile.encode('utf-8'))
cli=Client(base_url='unix://var/run/docker.sock')
printprint"Output of Client.images():"forlineincli.images():
printline# pretty printed in the shell outputprintprint"Output of Client.build():"forlineincli.build(fileobj=f, rm=True, tag='testing'):
printline# pretty printed in the shell output
The text was updated successfully, but these errors were encountered:
When using docker 1.7.0 client.build is unable to fetch local images and tries to download it from the internet. Tested also version 1.2.2 of docker-py and the same issue persists.
Here you can see the output of the test.
and here is the simplified version of the test.py
The text was updated successfully, but these errors were encountered: