News for hackers. Stuff that matters.
Re:Show HN: Unregistry – "docker push" directly to servers w... by dobremeno on Thursday June 19, 2025 @06:00AM (#44317071)
I assume OP meant something like this, building the image on the remote host directly using a docker context (which is different from a build context)

  docker context create my-awesome-remote-context --docker "host=ssh://user@remote-host"

  docker --context my-awesome-remote-context build . -t my-image:latest
This way you end up with `my-image:latest` on the remote host too. It has the advantage of not transferring the entire image but only transferring the build context. It builds the actual image on the remote host.
Re:Show HN: Unregistry – "docker push" directly to servers w... by revicon on Thursday June 19, 2025 @11:24AM (#44319556)
This is exactly what I do, make a context pointing to the remote host, use docker compose build / up to launch it on the remote system.