8000 docker transport: catch disconnects · Issue #1295 · containers/image · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
docker transport: catch disconnects #1295
Open
@vrothberg

Description

@vrothberg

https://bugzilla.redhat.com/show_bug.cgi?id=1898309 is asking to add some more information to users when loosing the connection to/from a registry. I'll move the technical discussion here.

Skimming the code, we may need to ping the registry when facing an error. (c *dockerClient) detectPropertiesHelper(...) may be a way to do that:

func PutBlob(...) {
  if err != nil {
    if err := detectPropertiesHelper(); err != nil {
         logrus.Debug("Probably lost connection to the container registry")
   } [..]

@mtrmac @lsm5 WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureA request for, or a PR adding, new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0