hercules-ci / arion

Run docker-compose with help from Nix/NixOS
Apache License 2.0
628 stars 47 forks source link

A deployment that is more serious than local development must leave a GC root #98

Open codygman opened 4 years ago

codygman commented 4 years ago

https://docs.hercules-ci.com/arion/#_what_about_garbage_collection

Reading this I get the impression that means that Arion created docker containers shouldn't be used in production. Is that correct?

Is there a recommended way to create this GC root in production? I'm guessing one of the contributors likely uses it in production and creates the gc root from NixOps or something?

roberth commented 3 years ago

You only need a GC root if you use the host store. Without useHostStore = true, Arion will build and load images with pkgs.dockerTools and docker load. I've used it with a remote docker host and you could probably even use it with a registry.