Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: index .NetworkSettings.Ports index of untyped nil #6923

Closed
tstromberg opened this issue Mar 6, 2020 · 1 comment · Fixed by #6924 or #6991
Closed

docker: index .NetworkSettings.Ports index of untyped nil #6923

tstromberg opened this issue Mar 6, 2020 · 1 comment · Fixed by #6924 or #6991
Assignees
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug.

Comments

@tstromberg
Copy link
Contributor

tstromberg commented Mar 6, 2020

docker: Template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "8444/tcp") 0>: error calling index: index of untyped nil

https://storage.googleapis.com/minikube-builds/logs/6920/e1049e7/Docker_Linux.html

It seems like the oci.HostPortBinding may be called before the container has a port bound:

I0306 14:37:50.268074   26177 profile.go:100] Saving config to /home/jenkins/minikube-integration/linux-amd64-docker-6920-27507-e1049e78b46458054ad50ee6fca8baf5bbd2950a/.minikube/profiles/containerd-20200306T143724.746095642-29306/config.json ...

W0306 14:37:57.662509   26177 exit.go:101] Failed to get driver URL: api host port binding: get host-bind port 8444 for "containerd-20200306T143724.746095642-29306", output 

Template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "8444/tcp") 0>: error calling index: index of untyped nil
@tstromberg tstromberg added the co/docker-driver Issues related to kubernetes in container label Mar 6, 2020
@tstromberg tstromberg changed the title docker: docker: Template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "8444/tcp") 0>: error calling index: index of untyped nil Mar 6, 2020
@tstromberg tstromberg added the kind/bug Categorizes issue or PR as related to a bug. label Mar 6, 2020
@medyagh medyagh reopened this Mar 6, 2020
@medyagh
Copy link
Member

medyagh commented Mar 6, 2020

@medyagh medyagh added this to the v1.9.0 March 30th milestone Mar 7, 2020
@medyagh medyagh changed the title docker: Template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "8444/tcp") 0>: error calling index: index of untyped nil docker: index .NetworkSettings.Ports index of untyped nil Mar 7, 2020
@medyagh medyagh self-assigned this Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
2 participants