kopia lustrzana https://github.com/jupyterhub/repo2docker
Move login command inside try so we clear env correctly
rodzic
d3facba5fb
commit
342eea96a8
|
@ -190,7 +190,8 @@ class DockerEngine(ContainerEngine):
|
||||||
shutil.copy2(dc_path, new_dc_path)
|
shutil.copy2(dc_path, new_dc_path)
|
||||||
|
|
||||||
os.environ["DOCKER_CONFIG"] = d
|
os.environ["DOCKER_CONFIG"] = d
|
||||||
proc = subprocess.run(
|
try:
|
||||||
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"docker",
|
"docker",
|
||||||
"login",
|
"login",
|
||||||
|
@ -202,7 +203,6 @@ class DockerEngine(ContainerEngine):
|
||||||
input=password.encode(),
|
input=password.encode(),
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
try:
|
|
||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
if old_dc_path:
|
if old_dc_path:
|
||||||
|
|
Ładowanie…
Reference in New Issue