(self, *args, **kwargs)
| 224 | ) |
| 225 | |
| 226 | def _execute_docker(self, *args, **kwargs): |
| 227 | # execute as a plain docker cli command |
| 228 | try: |
| 229 | result = Docker().run(*args, **kwargs) |
| 230 | result.check_returncode() |
| 231 | except subprocess.CalledProcessError as e: |
| 232 | raise RuntimeError( |
| 233 | f'{e.cmd} exited with non-zero exit code {e.returncode}' |
| 234 | ) |
| 235 | |
| 236 | def pull(self, service_name, pull_leaf=True, ignore_pull_failures=True): |
| 237 | def _pull(service): |