This class groups classes and functionality related to a specific backend.
We strongly advise you to use backend as a context manager:
with SomeBackend() as backend:
image = backend.ImageClass(...)
When entering the context manager, the backend will create a new temporary directory. You can use it if you want, the path is stored in attribute tmpdir of the backend instance. Some backend implementations use this temporary directory to store some short-lived runtime files (e.g. container-id file in case of docker). Once the context manager goes out of scope, this temporary directory is removed. If you don’t use the backend class as a context manager, the temporary directory isn’t removed and therefore lingers.
alias of Container
alias of Image
This method serves as a configuration interface for conu.
Parameters: |
|
---|