docker-push-ssh icon indicating copy to clipboard operation
docker-push-ssh copied to clipboard

Await SSH tunnel init using docker exec

Open samsonjs opened this issue 3 years ago • 0 comments

This change is copied from #10 which was never finished. It adds a 5-second timeout to the wget command as requested over there. I'm not sure why this change is necessary but it is necessary for my setup on macOS 12.

Before this change:

% docker-push-ssh -i ~/.ssh/id_ed25519 [email protected] vidjo:latest
[REQUIRED] Ensure localhost:5000 is added to your insecure registries.
Setting up secure private registry... 
Establishing SSH Tunnel...
Waiting for SSH Tunnel Initialization...
ERROR
SSH Tunnel failed to initialize.
('', "Warning: Permanently added 'some.server.net,1.2.3.4' (ECDSA) to the list of known hosts.\r\n")
Cleaning up...

and after:

% docker-push-ssh -i ~/.ssh/id_ed25519 [email protected] vidjo:latest
[REQUIRED] Ensure localhost:5000 is added to your insecure registries.
Setting up secure private registry... 
Establishing SSH Tunnel...
Waiting for SSH Tunnel Initialization...
Priming Registry with base images...
Tagging image(s) for push...
Pushing Image(s) from local host...
Pushed Image vidjo:latest Successfully...
Pulling and Retagging Image on remote host...
Pulled Image vidjo:latest Successfully...
Cleaning up...

samsonjs avatar Jan 15 '22 19:01 samsonjs