-
Notifications
You must be signed in to change notification settings - Fork 18
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
Failed to pull image, content digest sha256 not found #142
Comments
So |
That said, nix-snapshotter image service could be potentially extended to pull regular images via the |
Thanks for your response! I see, the images pulled using pkgs.nix-snapshotter.buildImage {
name = "cyberchef";
resolvedByNix = true;
fromImage = dockerImage;
}; While that copies the files of the image, it does not copy the configuration of it. There is probably a smarter way, but I created a small function to get the configuration of a Docker image: getDockerImageConfig = dockerImage:
let
configJson = pkgs.runCommand "config.json"
{
nativeBuildInputs = [ pkgs.skopeo pkgs.jq ];
}
''
skopeo --tmpdir $TMPDIR --insecure-policy inspect docker-archive:${dockerImage} --config | jq '.config' > $out
'';
in
builtins.fromJSON (builtins.readFile configJson); And I just pass it like this to the pkgs.nix-snapshotter.buildImage {
name = "cyberchef";
resolvedByNix = true;
fromImage = dockerImage;
config = getDockerImageConfig dockerImage;
}; This seems to work at least for the |
Would you happen to have any idea how to do it? Could you please share the outline? |
Hi @bglgwyng I answered more in the new issue you opened here: #147 (comment) To be clear, nix-snapshotter does not build derivations on-demand and works with pre-built Nix store paths. These could be substituted on-demand but they operate at the Nix store path level, not Nix derivations (or Nix expressions). That said, you can evaluate, build and deploy a |
Hello! First I would like to thank you for this awesome project! I have come across an issue while using it.
Context: I am running a k3s cluster on top of NixOS. I have already deployed nix-snapshotter successfully on my nodes. I can confirm my setup works as I was able to pull and run a Redis image from the Nix store.
However, I am now encountering a problem with a particular Docker image,
mpepping/cyberchef
. More specifically, I am using the image created by:When I use the Nix store path to this image, I receive the following events on the Kubernetes pod:
The logs of nix-snapshotter show no problem:
It does look like this is an upstream containerd issue: containerd/containerd#9873
Do you have any ideas how to avoid this issue?
The text was updated successfully, but these errors were encountered: