"Cannot autolaunch D-Bus without X11 $DISPLAY" while running tox test on dockerfile #3759
-
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used: Desired BehaviorRunning Actual BehaviourAll of the below happens by simply running I have the following configuration for my docker client (i.e. only relevant part) in {
"auths": {},
"credsStore": "secretservice"
} This instruct docker to store the credentials in my local linux keystore whenever I issue a For a reason I did not yet understand and although none of the relevant builds require credentials for a any docker registry while running tox dockerfile tests, all image builds fail with the following error message (abridged) regardless of the origin of their base image.
The workaround solution is actually trivial but I have no idea at this point if it is acceptable. I could fix by just adding a line to # do not put * in passenv as it may break builds do to reduced isolation
passenv =
DISPLAY
[... rest of existing env in file ...] Let me know if this would be an acceptable change and also if you want a PR for this. Else I can give any other needed information if you need more details. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @zeitounator Thanks for reporting this. But it seems this is a feature in docker itself, which is related to https://forums.docker.com/t/docker-login-fails-with-error-message-error-saving-credentials-cannot-autolaunch-d-bus-without-x11-display/77789 This issue only occurs if you set customized Let me know if you have any question. |
Beta Was this translation helpful? Give feedback.
-
Maybe it was not clear enough in my description but I don't use docker login, I'm simply running tox and yet it still fails with the above error although no login is needed. |
Beta Was this translation helpful? Give feedback.
-
A PR is welcomed and acceptable. The |
Beta Was this translation helpful? Give feedback.
A PR is welcomed and acceptable.
The
DISPLAY
environment variable is required ifdocker-credential-secretservice
is invoked somewhere.