The labels of a container as dictionary.
(self)
| 45 | |
| 46 | @property |
| 47 | def labels(self): |
| 48 | """ |
| 49 | The labels of a container as dictionary. |
| 50 | """ |
| 51 | try: |
| 52 | result = self.attrs['Config'].get('Labels') |
| 53 | return result or {} |
| 54 | except KeyError as ke: |
| 55 | raise DockerException( |
| 56 | 'Label data is not available for sparse objects. Call reload()' |
| 57 | ' to retrieve all information' |
| 58 | ) from ke |
| 59 | |
| 60 | @property |
| 61 | def status(self): |
nothing calls this directly
no test coverage detected