News for hackers. Stuff that matters.
Re:Show HN: Unregistry – "docker push" directly to servers w... by psviderski on Wednesday June 18, 2025 @07:51PM (#44314249)
Thank you! Can you please clarify what kind of support you mean for docker compose?
Re:Show HN: Unregistry – "docker push" directly to servers w... by fardo on Wednesday June 18, 2025 @07:57PM (#44314283)
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."
Re:Show HN: Unregistry – "docker push" directly to servers w... by koakuma-chan on Wednesday June 18, 2025 @08:05PM (#44314317)
Yes, pushing all containers one by one would not be very convenient.
Re:Show HN: Unregistry – "docker push" directly to servers w... by baobun on Wednesday June 18, 2025 @08:45PM (#44314474)
The right yq|xargs invocation on your compose file should get you to a oneshot.
Re:Show HN: Unregistry – "docker push" directly to servers w... by koakuma-chan on Wednesday June 18, 2025 @08:55PM (#44314527)
I would prefer docker compose pussh or whatever
Re:Show HN: Unregistry – "docker push" directly to servers w... by psviderski on Thursday June 19, 2025 @12:32AM (#44315461)
That's an interesting idea. I don't think you can create a subcommand/plugin for compose but creating a 'docker composepussh' command that parses the compose file and runs 'docker pussh' should be possible.

My plan is to integrate Unregistry in Uncloud as the next step to make the build/deploy flow super simple and smooth. Check out Uncloud (link in the original post), it uses Compose as well.

Re:Show HN: Unregistry – "docker push" directly to servers w... by djfivyvusn on Thursday June 19, 2025 @05:10AM (#44316813)
You can wrap docker in a bash function that passes through to `command docker` when it's not a compose pussh command.
Re:Show HN: Unregistry – "docker push" directly to servers w... by jillesvangurp on Thursday June 19, 2025 @02:21AM (#44315975)
Right now, I use ssh to trigger a docker compose restart that pulls all the latest images on some of my servers (we have a few dedicated hosting/on premise setups). That then needs to reach out to our registry to pull images. So, it's this weird mix of push pull that ends up needing a central registry.

What would be nicer instead is some variation of docker compose pussh that pushes the latest versions of local images to the remote host based on the remote docker-compose.yml file. The alternative would be docker pusshing the affected containers one by by one and then triggering a docker compose restart. Automating that would be useful and probably not that hard.

Re:Show HN: Unregistry – "docker push" directly to servers w... by felbane on Thursday June 19, 2025 @08:24AM (#44317985)
I've built a setup that orchestrates updates for any number of remotes without needing a permanently hosted registry. I have a container build VM at HQ that also runs a registry container pointed at the local image store. Updates involve connecting to remote hosts over SSH, establishing a reverse tunnel, and triggering the remote hosts to pull from the "localhost" registry (over the tunnel to my buildserver registry).

The connection back to HQ only lasts as long as necessary to pull the layers, tagging works as expected, etc etc. It's like having an on-demand hosted registry and requires no additional cruft on the remotes. I've been migrating to Podman and this process works flawlessly there too, fwiw.