dockerTools.examples: explicitly set image tag to fix docker-tools tests

docker-tools tests load images without specifying any tag
value. Docker then uses the image with tag "latest" which doesn't
exist anymore since commit 39e678e24e38f1f374eaf5463b424ebdf75df9af.

+5
+5
pkgs/build-support/docker/examples.nix
··· 13 13 # 1. basic example 14 14 bash = buildImage { 15 15 name = "bash"; 16 + tag = "latest"; 16 17 contents = pkgs.bashInteractive; 17 18 }; 18 19 ··· 65 66 in 66 67 buildImage { 67 68 name = "nginx-container"; 69 + tag = "latest"; 68 70 contents = pkgs.nginx; 69 71 70 72 runAsRoot = '' ··· 106 108 # docker run -it --rm nix nix-store -qR $(nix-build '<nixpkgs>' -A nix) 107 109 nix = buildImageWithNixDb { 108 110 name = "nix"; 111 + tag = "latest"; 109 112 contents = [ 110 113 # nix-store uses cat program to display results as specified by 111 114 # the image env variable NIX_PAGER. ··· 121 124 # dockerTools chain. 122 125 onTopOfPulledImage = buildImage { 123 126 name = "onTopOfPulledImage"; 127 + tag = "latest"; 124 128 fromImage = nixFromDockerHub; 125 129 contents = [ pkgs.hello ]; 126 130 }; ··· 129 133 # See issue #34779 and PR #40947 for details. 130 134 runAsRootExtraCommands = pkgs.dockerTools.buildImage { 131 135 name = "runAsRootExtraCommands"; 136 + tag = "latest"; 132 137 contents = [ pkgs.coreutils ]; 133 138 # The parens here are to create problematic bash to embed and eval. In case 134 139 # this is *embedded* into the script (with nix expansion) the initial quotes