Live data from Hacker News

Show HN: Unregistry – “docker push” directly to servers without a registry

github.com

21–30 of 178 posts

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#21
post #6

Earlier quoted context omitted.

I assume that he means "rather than pushing up each individual container for a project, it could take something like a compose file over a list of underlying containers, and push them all up to the endpoint."

Yes, pushing all containers one by one would not be very convenient.

The right yq|xargs invocation on your compose file should get you to a oneshot.

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#22
post #8

this is nice, hopefully DHH and the folks working on Kamal adopt this. the whole reason I didn't end up using kamal was the 'need' a docker registry thing. when I can easily push a dockerfile / compose to my vps build an image there and restart to deploy via a make command

Build the image on the deployment server? Why not build somewhere else once and save time during deployments?

I'm most familiar with on-prem deployments and quickly realised that it's much faster to build once, push to registry (eg github) and docker compose pull during deployments.

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#25
post #23

You can do these image acrobatics with the dagger shell too, but I don't have enough experience with it to give you the incantation: https://docs.dagger.io/features/shell/

I assume you can do these "image acrobatics" in any shell.

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#26
post #21

Earlier quoted context omitted.

Yes, pushing all containers one by one would not be very convenient.

The right yq|xargs invocation on your compose file should get you to a oneshot.

I would prefer docker compose pussh or whatever

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#28
post #10

Nice. And the `pussh` command definitely deserves the distinction of one of the most elegant puns: easy to remember, self-explanatory, and just one letter away from its sister standard command.

> The extra 's' is for 'sssh'

> What's that extra 's' for?

> That's a typo

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#29
post #19
post #4

A quick and dirty version: docker -H host1 image save IMAGE | docker -H host2 image load note: this isn't efficient at all (no compression or layer caching)!

I use a variant with ssh and some compression: docker save $image | bzip2 | ssh "$host" 'bunzip2 | docker load'

If you are happy with bzip2-level compression, you could also use `ssh -C` to enable automatic gzip compression.

Re: Show HN: Unregistry – “docker push” directly to servers without a registry

#30
post #15

Ooh this made me discover uncloud. Sounds like exactly what I was looking for. I wanted something like dokku but beefier for a sideproject server setup.

There is also https://skateco.github.io/ which (at quick glance) seems similar
Post reply on HN