jenkinsci / jenkinsci/docker-commons-plugin

[JENKINS-69436] Error: cannot perform an interactive login from a non TTY device

Open
#226 2 comments 0 reactions 0 assignees View on GitHub
component:docker-commons-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
53
Forks
85
PR merge metrics
No merged PRs in 30d

Description

 

since the last update to docker commons plugin (version 1.20), we are unable to use the withRegistry method properly.

steps to reproduce:

create a short script with:

 

docker.image().inside

{
docker.withRegistry("some private registry url", "valid credentials to the private registry")
{
/// we never reach this part...
}
}

the script above yields the error:

 

Error: cannot perform an interactive login from a non TTY device


downgrading docker commons plugin to version 1.19 solves the issue.

 

I believe the problem is caused due to the (possibly) wrong implementation of --password-stdin in this line.

if more information is needed, please let me know and I will happily provide it.

 

---
Originally reported by amidar, imported from: Error: cannot perform an interactive login from a non TTY device


  • status: Open
  • priority: Blocker
  • component(s): docker-commons-plugin
  • label(s): docker
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20260604-161841

Raw content of original issue

 

since the last update to docker commons plugin (version 1.20), we are unable to use the withRegistry method properly.

steps to reproduce:

create a short script with:

 



docker.image(<some recent version of docker in docker image>).inside

{
docker.withRegistry("some private registry url", "valid credentials to the private registry")
{
/// we never reach this part...
}
}


the script above yields the error:

 



Error: cannot perform an interactive login from a non TTY device



downgrading docker commons plugin to version 1.19 solves the issue.

 

I believe the problem is caused due to the (possibly) wrong implementation of --password-stdin in this line.

if more information is needed, please let me know and I will happily provide it.

 

environment

```
Jenkins 2.346.3

docker-commons-plugin 1.20

all required plugins are up to date/latest version
```

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.