diff options
Diffstat (limited to 'trove/guestagent/utils/docker.py')
-rw-r--r-- | trove/guestagent/utils/docker.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trove/guestagent/utils/docker.py b/trove/guestagent/utils/docker.py index 0fdda049..0f254aa6 100644 --- a/trove/guestagent/utils/docker.py +++ b/trove/guestagent/utils/docker.py @@ -91,11 +91,16 @@ def run_container(client, image, name, network_mode="host", volumes={}, """ try: container = client.containers.get(name) + LOG.debug(f'Removing existing container {name}') container.remove(force=True) except docker.errors.NotFound: pass try: + LOG.info( + f'Running container {name}, image: {image}, ' + f'network_mode: {network_mode}, volumes: {volumes}, ' + f'command: {command}') output = client.containers.run( image, name=name, |