Previously, logging a Registry object in docker-related keywords
produced unreadable memory addresses (e.g., <Registry object at
0x...>).
This commit adds __str__ and __repr__ methods to return a formatted
string like 'local_registry (registry.local:9001)'.
Type hints and docstrings were added to satisfy pre-commit linting.
Change-Id: Ic2b3c8263fe9e12d5149749ee93376d37803bdc6
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>