Created
July 14, 2014 11:09
-
-
Save leoncamel/dfc0492777bc2db97739 to your computer and use it in GitHub Desktop.
Docker build by docker-py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import docker | |
c = docker.Client(base_url="http://localhost:port", version="1.11") | |
print(c.version()) | |
for i in c.build(fileobj=open("file.tar"), stream=True, custom_context=True): | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment