Closed evantorrie closed 7 years ago
Seems to go from; pkg/jsonmessage/jsonmessage.go#L144 -> vendor/github.com/Nvveen/Gotty/parser.go#L42 -> vendor/github.com/Nvveen/Gotty/gotty.go#L94)
And bails out there.
This package was added in https://github.com/docker/docker/pull/28304, so let me ping @ijc25 to have a look :smile:
To reproduce: TERMINFO=foo docker pull <new-image>
The panic happens because if this env is set https://github.com/docker/docker/pull/28304/files#diff-60de284af32e69485152dddbfad68ac3R28 will return an empty typed pointer from this function with nil error. When docker tests if that pointer is nil https://github.com/docker/docker/pull/28304/files#diff-e5b95dcf94c93219182533e487ce4857R262 that condition would be true as the interface is now typed.
Could fix it with some better handling in Docker but I don't really understand the return from OpenTermInfo
. Seems like a github.com/Nvveen/Gotty
issue to me.
Seems like the code at https://github.com/docker/docker/pull/28304/files#diff-60de284af32e69485152dddbfad68ac3R28 is missing the else case which searches $TERMINFO
for termName
and constructs the TermInfo
.
I'll fix this function up today.
We are already vendoring from a PR https://github.com/Nvveen/Gotty/pull/1. I'll put these fixes into a new PR but I'll also merge both into https://github.com/ijc25/Gotty/tree/master so we have something to vendor.
I believe this should be reported in docker/docker issue tracker, as this is an upstream component in Docker for Mac
@jeanlaurent opened https://github.com/docker/docker/issues/32400 for tracking
@evantorrie thanks so much for the report!
I'm going to close that issue, as this is going to be solved upstream.
Thanks a lot @evantorrie, @ijc25 and @thaJeztah
@evantorrie FYI this was fixed in docker engine master via https://github.com/docker/docker/pull/32401 and so should make its way through to docker for mac in the next release.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked
Expected behavior
docker pull
from private repository successfully pulls imageActual behavior
Information
Steps to reproduce the behavior