#!/usr/bin/env python3
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
"""arvados_docker.cleaner - Remove unused Docker images from compute nodes
Usage:
except (FileNotFoundError, IOError, ValueError) as error:
if (isinstance(error, FileNotFoundError) and
args.config == DEFAULT_CONFIG_FILE):
- logger.warning("DEPRECATED: default config file not found; "
- "relying on command line configuration")
+ logger.warning("DEPRECATED: default config file %s not found; "
+ "relying on command line configuration",
+ repr(DEFAULT_CONFIG_FILE))
else:
sys.exit('error reading config file {}: {}'.format(
args.config, error))
config = load_config(arguments)
configure_logging(config)
try:
- run(config, docker.Client(version='1.14'))
+ run(config, docker.APIClient(version='1.35'))
except KeyboardInterrupt:
sys.exit(1)