DockerTools only supports registry API v1, hub.docker.com hasn't supported v1 in over a year:
https://blog.docker.com/2015/10/docker-hub-deprecation-1-5/
default.nix:{ dockerTools }:
dockerTools.pullImage {
imageName = "alpine";
imageTag = "latest";
imageId = null;
sha256 = "1bhw5hkz6chrnrih0ymjbmn69hyfriza2lr550xyvpdrnbzr4gk2";
indexUrl = "https://index.docker.io";
registryVersion = "v1";
}
nix-build these derivations will be built:
/nix/store/1mg5sascdlv281kz45z6rnbjgw2d3fa0-alpine-latest.drv
/nix/store/6sii94lc1k2kr4d9gdsyd4arkb7klgb9-alpine-latest.tar.gz.drv
building path(s) ‘/nix/store/6rjvi0727zinb8mi5jjs761z5cz3iabh-alpine-latest’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2 0 2 0 0 1 0 --:--:-- 0:00:01 --:--:-- 7
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (22) The requested URL returned error: 404 NOT FOUND
builder for ‘/nix/store/1mg5sascdlv281kz45z6rnbjgw2d3fa0-alpine-latest.drv’ failed with exit code 22
cannot build derivation ‘/nix/store/6sii94lc1k2kr4d9gdsyd4arkb7klgb9-alpine-latest.tar.gz.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/6sii94lc1k2kr4d9gdsyd4arkb7klgb9-alpine-latest.tar.gz.drv’ failed
I think it's been deprecated for (over) a year, but still worked until recently or a few months ago.
I don't think that is possible: "On December 7, 2015, pulls via clients 1.5
and earlier will be disabled."
On Wed, Jan 4, 2017 at 3:08 PM Daiderd Jordan notifications@github.com
wrote:
I think it's been deprecated for a (over)year, but still worked until
recently or a few months ago.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/21651#issuecomment-270472958,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAErrFAJf6tUg99aDT4rmR4wRRcPY1GQks5rO_w0gaJpZM4La1BD
.
Oh, I'm surprised people where still using it afterwards then.
cc @lethalman
I recently tried to download an image from the docker hub via nix, that failed. I think we should remove all broken tools. Note that the generation of .tar.gz files that can be loaded into docker with docker load still works and is quite useful.
cc @lo1tuma
Wasn’t this fixed by #26131?
Fixed on master
Most helpful comment
I recently tried to download an image from the docker hub via nix, that failed. I think we should remove all broken tools. Note that the generation of
.tar.gzfiles that can be loaded into docker withdocker loadstill works and is quite useful.