Skip to content
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

Packer fails to run docker login prior to build step when building from bootstrapped Dockerfile #194

Closed
jonathanmccormack opened this issue Nov 14, 2024 · 0 comments · Fixed by #195
Labels

Comments

@jonathanmccormack
Copy link
Contributor

Overview of the Issue

When attempting to build a template using the docker plugin where the login configuration option is true and the login_server, login_username, and login_password options have valid values and the build option is defined (i.e., building from bootstrapped Dockerfile), the plugin does not authenticate before running the docker build step. The documentation does not clearly indicate that authenticating against a private repository would not be supported for a bootstrapped build, and this functionality would be very helpful.

Reproduction Steps

  • Define Packer template with defined build option, login, login_server, login_username, and login_password options.
  • Run packer build command where defined Dockerfile is based upon image in repository requiring authentication (e.g., "registry1.dso.mil")

Plugin and Packer version

  • Packer v1.11.2
  • packer-plugin-docker v1.1.0

Simplified Packer Buildfile

  required_plugins {
    docker = {
      source  = "github.com/hashicorp/docker"
      version = "~> 1"
    }
  }
}

source "docker" "rhel-ubi9-container" {
  build {
    path      = "files/Dockerfile"
    build_dir = "files/"
    pull      = true
  }

  commit          = false
  export_path     = "rhel-ubi9-container.tar"

  login           = true
  login_server    = "registry1.dso.mil"
  login_username  = var.registry_username
  login_password  = var.registry_password
}

...with "files/Dockerfile" content including:

ARG BASE_IMAGE=ironbank/redhat/ubi/ubi9
ARG BASE_TAG=9.4

FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}

Operating system and Environment details

Issue exists on both tested systems:

  • macOS 15.1 arm64
  • Red Hat Enterprise Linux 9 x86_64

Log Fragments and crash.log files

2024/11/14 17:01:38 [INFO] Packer version: 1.11.2 [go1.21.12 darwin arm64]
2024/11/14 17:01:38 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/14 17:01:38 [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/jonathan.mccormack/.packerconfig
2024/11/14 17:01:38 [WARN] Config file doesn't exist: /Users/jonathan.mccormack/.packerconfig
2024/11/14 17:01:38 [INFO] Setting cache directory: /Users/jonathan.mccormack/.cache/packer
2024/11/14 17:01:38 [TRACE] listing potential installations for "github.com/hashicorp/amazon" that match ">= 1.2.8". plugingetter.ListInstallationsOptions{PluginDirectory:"/Users/jonathan.mccormack/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x140006d8000)}}, ReleasesOnly:false}}
2024/11/14 17:01:38 [TRACE] Found the following "github.com/hashicorp/amazon" installations: [{/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.2_x5.0_darwin_arm64 v1.3.2 x5.0},{/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 v1.3.3 x5.0}]
2024/11/14 17:01:38 [INFO] found external [chroot ebs ebssurrogate ebsvolume instance] builders from amazon plugin
2024/11/14 17:01:38 [INFO] found external [import] post-processors from amazon plugin
2024/11/14 17:01:38 found external [ami parameterstore secretsmanager] datasource from amazon plugin
2024/11/14 17:01:38 [TRACE] listing potential installations for "github.com/hashicorp/docker" that match "~> 1". plugingetter.ListInstallationsOptions{PluginDirectory:"/Users/jonathan.mccormack/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x140006d8000)}}, ReleasesOnly:false}}
2024/11/14 17:01:38 [TRACE] Found the following "github.com/hashicorp/docker" installations: [{/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 v1.1.0 x5.0}]
2024/11/14 17:01:38 [INFO] found external [-packer-default-plugin-name-] builders from docker plugin
2024/11/14 17:01:38 [INFO] found external [import push save tag] post-processors from docker plugin
2024/11/14 17:01:38 [TRACE] listing potential installations for <nil> that match "". plugingetter.ListInstallationsOptions{PluginDirectory:"/Users/jonathan.mccormack/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x1400015e700)}}, ReleasesOnly:false}}
2024/11/14 17:01:38 [INFO] found external [chroot ebs ebssurrogate ebsvolume instance] builders from amazon plugin
2024/11/14 17:01:38 [INFO] found external [import] post-processors from amazon plugin
2024/11/14 17:01:38 found external [ami parameterstore secretsmanager] datasource from amazon plugin
2024/11/14 17:01:38 [INFO] found external [-packer-default-plugin-name-] builders from docker plugin
2024/11/14 17:01:38 [INFO] found external [import push save tag] post-processors from docker plugin
2024/11/14 17:01:38 [TRACE] validateValue: not active for image_tag, so skipping
2024/11/14 17:01:38 [TRACE] validateValue: not active for registry_secret_name, so skipping
2024/11/14 17:01:38 [TRACE] validateValue: not active for aws_region, so skipping
2024/11/14 17:01:38 [TRACE] validateValue: not active for aws_profile, so skipping
2024/11/14 17:01:38 [TRACE] validateValue: not active for aws_account_id, so skipping
2024/11/14 17:01:38 [TRACE] validateValue: not active for image_name, so skipping
2024/11/14 17:01:38 [INFO] Starting external plugin /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 start datasource secretsmanager
2024/11/14 17:01:38 Starting plugin: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 []string{"/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64", "start", "datasource", "secretsmanager"}
2024/11/14 17:01:38 Waiting for RPC address for: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Plugin address: unix /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin3130760657
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Waiting for connection...
2024/11/14 17:01:38 Received unix RPC address for /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64: addr is /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin3130760657
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Serving a plugin connection...
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [TRACE] starting datasource secretsmanager
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS or the configuration options aws_polling_delay_seconds and aws_polling_max_attempts to your desired values.
2024/11/14 17:01:38 [INFO] (telemetry) Starting datasource amazon-secretsmanager
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Found region us-east-1
2024/11/14 17:01:38 packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2024/11/14 17:01:38 [INFO] (telemetry) ending amazon-secretsmanager
2024/11/14 17:01:38 [INFO] Starting external plugin /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 start builder -packer-default-plugin-name-
2024/11/14 17:01:38 Starting plugin: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 []string{"/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64", "start", "builder", "-packer-default-plugin-name-"}
2024/11/14 17:01:38 Waiting for RPC address for: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Plugin address: unix /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin4081447018
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Waiting for connection...
2024/11/14 17:01:38 Received unix RPC address for /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: addr is /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin4081447018
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Serving a plugin connection...
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [TRACE] starting builder -packer-default-plugin-name-
2024/11/14 17:01:38 [INFO] Starting external plugin /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 start post-processor import
2024/11/14 17:01:38 Starting plugin: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 []string{"/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64", "start", "post-processor", "import"}
2024/11/14 17:01:38 Waiting for RPC address for: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Plugin address: unix /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin2627754566
2024/11/14 17:01:38 Received unix RPC address for /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: addr is /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin2627754566
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Waiting for connection...
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Serving a plugin connection...
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [TRACE] starting post-processor import
2024/11/14 17:01:38 [INFO] Starting external plugin /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 start post-processor push
2024/11/14 17:01:38 Starting plugin: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 []string{"/Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64", "start", "post-processor", "push"}
2024/11/14 17:01:38 Waiting for RPC address for: /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Plugin address: unix /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin1173103621
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Waiting for connection...
2024/11/14 17:01:38 Received unix RPC address for /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: addr is /var/folders/q3/g9yw1gzs3111xsgylss5lx4m0000gp/T/packer-plugin1173103621
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Serving a plugin connection...
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [TRACE] starting post-processor push
2024/11/14 17:01:38 Build debug mode: false
2024/11/14 17:01:38 Force build: false
2024/11/14 17:01:38 On error:
2024/11/14 17:01:38 Waiting on builds to complete...
2024/11/14 17:01:38 Starting build run: docker.rhel-ubi9-container
2024/11/14 17:01:38 Running builder: docker
2024/11/14 17:01:38 [INFO] (telemetry) Starting builder docker.rhel-ubi9-container
docker.rhel-ubi9-container: output will be in this color.

2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 version matches: [27 27          ]
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [DEBUG] Docker version: 27.0.0
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 [DEBUG] Container will be exported to rhel-ubi9-container.tar
==> docker.rhel-ubi9-container: Creating a temporary directory for sharing data...
2024/11/14 17:01:38 packer-plugin-docker_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/14 17:01:38 Set Packer temp dir to /Users/jonathan.mccormack/.config/packer/tmp265281567
==> docker.rhel-ubi9-container: Building base image...
2024/11/14 17:01:39 [INFO] (telemetry) ending docker.rhel-ubi9-container

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.51kB done
#1 DONE 0.0s

#2 [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
#2 ERROR: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized
------
 > [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4:
------
Dockerfile:5
--------------------
   3 |     ARG BASE_TAG=9.4
   4 |
   5 | >>> FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS build_stage
   6 |
   7 |     ARG C_ARES_VERSION=1.19.1-2
--------------------
ERROR: failed to solve: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: failed to resolve source metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kj9t1m7zvmi5xvlt3if06in3

==> Wait completed after 658 milliseconds 749 microseconds
2024/11/14 17:01:39 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2024/11/14 17:01:39 machine readable: docker.rhel-ubi9-container,error []string{"docker build failed: exit status 1; stdout: ; stderr: #0 building with \"desktop-linux\" instance using docker driver\n\n#1 [internal] load build definition from Dockerfile\n#1 transferring dockerfile: 2.51kB done\n#1 DONE 0.0s\n\n#2 [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4\n#2 ERROR: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized\n------\n > [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4:\n------\nDockerfile:5\n--------------------\n   3 |     ARG BASE_TAG=9.4\n   4 |     \n   5 | >>> FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS build_stage\n   6 |     \n   7 |     ARG C_ARES_VERSION=1.19.1-2\n--------------------\nERROR: failed to solve: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: failed to resolve source metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized\n\nView build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kj9t1m7zvmi5xvlt3if06in3\n"}

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.51kB done
#1 DONE 0.0s

#2 [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
#2 ERROR: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized
------
 > [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4:
------
Dockerfile:5
--------------------
   3 |     ARG BASE_TAG=9.4
   4 |
   5 | >>> FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS build_stage
   6 |
   7 |     ARG C_ARES_VERSION=1.19.1-2
--------------------
ERROR: failed to solve: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: failed to resolve source metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kj9t1m7zvmi5xvlt3if06in3
==> Builds finished but no artifacts were created.
2024/11/14 17:01:39 [INFO] (telemetry) Finalizing.
Build 'docker.rhel-ubi9-container' errored after 658 milliseconds 697 microseconds: docker build failed: exit status 1; stdout: ; stderr: #0 building with "desktop-linux" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.51kB done
#1 DONE 0.0s

#2 [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
#2 ERROR: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized
------
 > [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4:
------
Dockerfile:5
--------------------
   3 |     ARG BASE_TAG=9.4
   4 |
   5 | >>> FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS build_stage
   6 |
   7 |     ARG C_ARES_VERSION=1.19.1-2
--------------------
ERROR: failed to solve: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: failed to resolve source metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kj9t1m7zvmi5xvlt3if06in3


==> Wait completed after 658 milliseconds 749 microseconds

==> Some builds didn't complete successfully and had errors:
--> docker.rhel-ubi9-container: docker build failed: exit status 1; stdout: ; stderr: #0 building with "desktop-linux" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.51kB done
#1 DONE 0.0s

#2 [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
#2 ERROR: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized
------
 > [internal] load metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4:
------
Dockerfile:5
--------------------
   3 |     ARG BASE_TAG=9.4
   4 |
   5 | >>> FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS build_stage
   6 |
   7 |     ARG C_ARES_VERSION=1.19.1-2
--------------------
ERROR: failed to solve: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: failed to resolve source metadata for registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4: unexpected status from HEAD request to https://registry1.dso.mil/v2/ironbank/redhat/ubi/ubi9/manifests/9.4: 401 Unauthorized

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kj9t1m7zvmi5xvlt3if06in3


==> Builds finished but no artifacts were created.
2024/11/14 17:01:39 waiting for all plugin processes to complete...
2024/11/14 17:01:39 /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: plugin process exited
2024/11/14 17:01:39 /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: plugin process exited
2024/11/14 17:01:39 /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/docker/packer-plugin-docker_v1.1.0_x5.0_darwin_arm64: plugin process exited
2024/11/14 17:01:39 /Users/jonathan.mccormack/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.3_x5.0_darwin_arm64: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant