https://rancher.com/ logo
Title
f

future-eve-56565

07/26/2022, 10:13 PM
I've got a Dockerfile with a remote ADD in it that is failing with nerdctl on my local Windows, but working fine with docker in our GitHub Actions CI environment.
...
 => ERROR [5/6] ADD --chown=1001:0 <https://repo1.maven.org/maven2/com/ibm/db2/jcc/11.5.7.0/jcc-11.5.7.0.jar> /conf  0.0s
------
 > [5/6] ADD --chown=1001:0 <https://repo1.maven.org/maven2/com/ibm/db2/jcc/11.5.7.0/jcc-11.5.7.0.jar> /config/db2jcc4.jar:
------
Dockerfile:30
--------------------
  28 |     # this simple, but dependent on specific version, and undocumented
  29 |     ARG DB2_VERSION=11.5.7.0
  30 | >>> ADD --chown=1001:0 <https://repo1.maven.org/maven2/com/ibm/db2/jcc/$DB2_VERSION/jcc-$DB2_VERSION.jar> /config/db2jcc4.jar
  31 |
  32 |     # <https://docs.openshift.com/container-platform/4.5/openshift_images/create-images.html#use-uid_create-images>
--------------------
error: failed to solve: snapshot  does not exist: not found
FATA[0000] unrecognized image format
Well, possibly. But this should work too. Wondering if it's like certificate trusting, even...
1.5.0 same problem. And tried versions of editing
\\wsl$\rancher-desktop\usr\local\share\ca-certificates
, as described in below link, on the theory that it could be the certificate: https://dev.to/crumdev/replace-docker-with-rancher-desktop-and-wsl2-on-windows-5d16
I guess I'll open an Issue. I have to think that
ADD
isn't working correctly under RD/nerdctl, possibly with https URLs 🤷