Skip to content

[archive plugin] Getting credentials error when updating "swift:amazonlinux2" docker image on macOS #609

@xBrux

Description

@xBrux

Describe the bug

Environment

  • macOS: 26.1
  • Swift: swift-6.2.1-RELEASE
  • Docker Desktop: 4.52.0 (210994) | 4.53.0 (211793)
  • swift-aws-lambda-runtime: main

When archiving Lambda, Docker fails to pull the required image:

swift package archive --allow-network-connections docker

-------------------------------------------------------------------------
building "pawbox-lambdas" in docker
-------------------------------------------------------------------------
updating "swift:amazonlinux2" docker image
  error getting credentials - err: exit status 1, out: `One or more parameters passed to the function were not valid. (-50)`
error: /usr/local/bin/docker pull swift:amazonlinux2 failed with code 1

However, running the same command manually in Terminal works:

docker pull swift:amazonlinux2

Expected Behavior

swift package archive --allow-network-connections docker
should be able to successfully pull the required Docker image (e.g. swift:amazonlinux2) and complete the Lambda archive process.

Current Behavior

When archiving Lambda, Docker fails to pull the required image:

swift package archive --allow-network-connections docker

-------------------------------------------------------------------------
building "pawbox-lambdas" in docker
-------------------------------------------------------------------------
updating "swift:amazonlinux2" docker image
  error getting credentials - err: exit status 1, out: `One or more parameters passed to the function were not valid. (-50)`
error: /usr/local/bin/docker pull swift:amazonlinux2 failed with code 1

Reproduction Steps

  1. Update to the latest Docker Desktop (macOS 26.1, Docker Desktop: 4.52.0 (210994) or 4.53.0 (211793));
  2. In a Swift AWS Lambda project, run: swift package archive --allow-network-connections docker.

Possible Solution

No response

Additional Information/Context

No response

AWS SWIFT SDK version used

swift-aws-lambda-runtime 2.4.0 (main-branch)

Compiler and Version used

swift-6.2.1-RELEASE or Xcode 26.1.1

Operating System and version

macOS 26.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions