dockerTools: private registry support

* authorization token is optional
* registry url is taken from X-Docker-Endpoints header
* pull.sh correctly resumes partial layer downloads
* detjson.py does not fail on missing keys
This commit is contained in:
Arthur Noel
2016-01-27 21:13:07 +00:00
parent 189693327b
commit 903129f770
4 changed files with 40 additions and 31 deletions
+3 -1
View File
@@ -24,9 +24,11 @@ SAFEDELS["container_config"] = SAFEDELS["config"]
def makedet(j, safedels):
for k,v in safedels.items():
if k not in j:
continue
if type(v) == dict:
makedet(j[k], v)
elif k in j and j[k] == v:
elif j[k] == v:
del j[k]
def main():