Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Arion or docker-compose #135

Open
mjmeintjes opened this issue Mar 30, 2024 · 0 comments
Open

Using with Arion or docker-compose #135

mjmeintjes opened this issue Mar 30, 2024 · 0 comments

Comments

@mjmeintjes
Copy link

I'm trying to figure out how to use nix-snapshotter to run images that are then composed using Arion , nix frontend for docker-compose.

I've set it up like this:

  services.redis = { pkgs, lib, ... }: {
    service.image = "nix:0${pkgs.nix-snapshotter.buildImage {
        name = "ghcr.io/pdtpartners/redis";
        tag = "latest";
        config.entrypoint = [ "${pkgs.redis}/bin/redis-server" ];
    }}";
  };

But when I run it, I get the following error:

❯ arion up
/nix/store/hfs26lgg6qi2cki1kz6s2vwk3x0bjm0z-docker-compose.yaml
Pulling test (nix:0/nix/store/0cdzy9y0bh1qh95blp9rgm5pgwivyhhx-nix-image-redis.tar:)...
ERROR: Get "https://nix:0/v2/": dial tcp: lookup nix: no such host

Does anyone have any experience using nix-snapshotter with Arion or docker-compose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant