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

zedrouter/appcontainer: fix connectivity to the VM docker #3273

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

rouming
Copy link
Contributor

@rouming rouming commented Jun 8, 2023

From some version of the docker/client library the .NewClient() call was deprecated, which caused the following error:

"getAppContainers: Container list error Cannot connect to the Docker daemon at tcp://$IP:2375. Is the docker daemon running?"

because by default the connectivity was established through the unix docker.sock socket.

This patch fixes the problem by passing the HTTP client to the constructor of the docker client.

The main motivation of this fix is the "Unknown" state of "Modules" visible on the UI of the controller, because statistics was never collected from the docker.

cc: @naiming-zededa

From some version of the docker/client library the .NewClient()
call was deprecated, which caused the following error:

  "getAppContainers: Container list error Cannot connect to the Docker daemon at tcp://$IP:2375. Is the docker daemon running?"

because by default the connectivity was established through
the unix docker.sock socket.

This patch fixes the problem by passing the HTTP client to
the constructor of the docker client.

The main motiviation of this fix is the "Unknown" state of
"Modules" visible on the UI of the controller, because
statistics was never collected from the docker.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
@rouming rouming requested a review from milan-zededa as a code owner June 8, 2023 16:03
@naiming-zededa
Copy link
Contributor

Sounds good to me.

@rouming rouming added the stable Should be backported to stable release(s) label Jun 8, 2023
@rouming rouming merged commit 8c77e0f into lf-edge:master Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants