GoogleContainerTools / GoogleContainerTools/jib

The system does not have docker-credential-ecr-login CLI

Open
#4,176 4 comments 1 reaction 0 assignees View on GitHub
priority:p3 type: feature request
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**Environment**:

- *Jib version:* 3.4.0
- *Build tool:* Gradle 8.5.0
- *OS:* Mac Ventura 13.5 (22G74)

**Description of the issue**:
I have the AWS docker-credential-ecr-login installed using Brew, and I can execute the following command to get a secret token.

```
echo | docker-credential-ecr-login get
```

But Jib throws the following error:

```
Execution failed for task ':jib'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: The system does not have docker-credential-ecr-login CLI
```

**Steps to reproduce**:
Run `./gradlew jib`

**`jib-gradle-plugin` Configuration**:
```
jib {
from {
image = "openjdk:alpine"
}
to {
image =
setCredHelper("ecr-login")
tags = setOf("latest")
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.