containers / containers/podman-py

No registry logout function

Open
#645 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
381
Forks
140
Avg merge
5h 30m
Merged PRs (30d)
1

Description

Using the command line podman there exits an command to log out from an registry:
`podman logout `
But via the API I don't see an function call for it.
So until now you can login via:
```
with podman.PodmanClient() as pm:
pm.login(password=self._container_registry_credentials["token"],
username=self._container_registry_credentials["user"], registry=f"https://{self._container_registry}")
```
But after the program quits you are still logged in into the registry.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.