-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.454 on Debian 6.1.69 running Docker version 26.0.0, build 2ae903e
Trying to use docker.withRegistry results in:
Failed to initialize: unable to resolve docker endpoint: context "rootless": context not found: open /var/lib/jenkins/workspace/r_PROJECT_NAME_master@tmp/a5534a4f-0526-4110-af60-6d9dcc324f14/contexts/meta/12b961af5feb3e9d39f93b2cefb9a1a944f18d02cca0cac2f04f5a982240605f/meta.json: no such file or directory
I'm trying to run rootless docker, but AFAIK the issue is with running a non-default context. It should be looking in /var/lib/jenkins/.docker/contexts/meta rather than in workspace.
$ docker context inspect rootless
[
{
"Name": "rootless",
"Metadata": {
"Description": "Rootless mode"
},
"Endpoints": {
"docker": {
"Host": "unix:///run/user/102/docker.sock",
"SkipTLSVerify": falseUnknown macro: {{ }}}
},
"TLSMaterial": {},
"Storage": {
"MetadataPath": "/var/lib/jenkins/.docker/contexts/meta/12b961af5feb3e9d39f93b2cefb9a1a944f18d02cca0cac2f04f5a982240605f",
"TLSPath": "/var/lib/jenkins/.docker/contexts/tls/12b961af5feb3e9d39f93b2cefb9a1a944f18d02cca0cac2f04f5a982240605f"Unknown macro: {{ }}}
Unknown macro: {{ }}}
]