Comments (3)
Aha! I tried moving things around a little more and nothing was working. Then I removed the reproducible = false;
and it worked as expected. So now I'm stuck on how to debug this issue.
from nix2container.
I'm surprised reproducible=false
changes the behavior since it is not doing a lot of thing: it only puts the tarball into a file (while it is only generated on the fly with reproducible=true
).
Would you be able to share an reproducible=false
example which doesn't work?
the base image must be pulled manually outside nix as it's from a private registry
and nixpkgs.dockerTools.pullImage doesn't support using login credentials
BTW, this is supported by nix2container: https://github.com/nlewo/nix2container#authentication
from nix2container.
I let it run for a while and it repeated that line many times but did eventually finish. When I looked at the image-core.json
file I see layers like this
{
"digest": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
"size": 224948736,
"diff_ids": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
"paths": [
{
"path": "/nix/store/ycnrbmp51j7nnffyp83ql7gqis3hl81j-openssl-3.0.9-bin"
}
],
"mediatype": "application/vnd.oci.image.layer.v1.tar",
"layer-path": "/nix/store/y8i41ns2600lqig56x2jhjq5s9ji6rq6-layers.json/8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6.tar"
},
{
"digest": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
"size": 224948736,
"diff_ids": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
"paths": [
{
"path": "/nix/store/zrrqmaz7iph084inqn9gj03q1g2fcpxx-libuv-1.44.2-dev"
}
],
"mediatype": "application/vnd.oci.image.layer.v1.tar",
"layer-path": "/nix/store/y8i41ns2600lqig56x2jhjq5s9ji6rq6-layers.json/8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6.tar"
},
So they do have the same digest and size, but they contain different paths. I'm not sure why that is, but it doesn't seem to cause any problems.
from nix2container.
Related Issues (20)
- Skopeo fails to patch on nixos-unstable with skopeo 1.14.0 HOT 1
- make it a little more error prone
- How to run image i build? HOT 1
- `pullImageFromManifest` does not work without token URL HOT 1
- clean up old mess HOT 3
- Could `foldImageLayers` be added as lib function? HOT 2
- feat: oci image linking to store host nix/store path HOT 4
- pip networking error HOT 1
- Request: easy way to get resulting image name HOT 2
- devenv: no image using skopeo copy from Nix source to docker-daemon target HOT 4
- External hinting system for automatic layering HOT 1
- Assertion `info.references.size() == 0' failure pulling layers containing store paths
- Image Manifest Metadata Lost HOT 2
- idea: Group image actions under `do` HOT 4
- idea: Flake Module HOT 2
- Fails to evaluate on macOS
- skopeo copy always copies a layer, even if the hash is the same HOT 6
- How to create a docker image with nix2container that can be used to build nix2container images?
- Build within nix2container image: "Digest did not match" from Skopeo HOT 12
- Rootfs Issue with image deployed to AWS Fargate HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix2container.