diff --git a/runtime/opt/taupage/runtime/Docker.py b/runtime/opt/taupage/runtime/Docker.py index c8c4f03..02c9da4 100755 --- a/runtime/opt/taupage/runtime/Docker.py +++ b/runtime/opt/taupage/runtime/Docker.py @@ -306,7 +306,16 @@ def main(args): logging.error("Failed to list existing docker containers: %s", str(e)) # not a fatal error, continue - if not already_exists: + if already_exists: + try: + cmd = ['docker', 'start', 'taupageapp'] + logging.info('Starting existing Docker container: {}'.format(cmd)) + if not args.dry_run: + subprocess.check_output(cmd) + except Exception as e: + logging.error('Docker start of existing container failed: %s', str(e)) + sys.exit(1) + else: registry = extract_registry(source) if registry: