Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

example run command doesnt work out of the box #1

@mlilien

Description

@mlilien

the run command doesnt work in my environment.

[marcel@srv ~]$ docker run --rm -it elbb/registry-cleanup -address http://localhost:5000
2020/06/14 12:49:57 registry.ping url=http://localhost:5000/v2/
2020/06/14 12:49:57 Error connecting to server. Check arguments.
2020/06/14 12:49:57 Error response Get http://localhost:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused

my registry runs in a bridged network elbb-dev in a container called registry and has port config 5000:5000
What works for me is either:

[marcel@srv ~]$ docker run --rm --network host -it elbb/registry-cleanup -address http://localhost:5000
2020/06/14 12:50:14 registry.ping url=http://localhost:5000/v2/
2020/06/14 12:50:14 registry.repositories url=http://localhost:5000/v2/_catalog
? Images  [Use arrows to move, enter to select, type to filter]
> [ ]  elbb/bb-gitversion
  [ ]  Exit

or

[marcel@srv ~]$ docker run --rm --network elbb-dev -it elbb/registry-cleanup -address http://registry:5000
2020/06/14 12:55:19 registry.ping url=http://registry:5000/v2/
2020/06/14 12:55:19 registry.repositories url=http://registry:5000/v2/_catalog
? Images  [Use arrows to move, enter to select, type to filter]
> [ ]  elbb/bb-gitversion
  [ ]  Exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions