Skip to content
Snippets Groups Projects
Commit 35f2b956 authored by Martin Mareš's avatar Martin Mareš
Browse files

Add "shc update --no-pull"

parent 8d0b44e9
No related branches found
No related tags found
No related merge requests found
kam-shipcat (0.9.1) unstable; urgency=medium
* Added podman_create_options.
* Added podman_create_options and "shc update --no-pull".
-- Martin Mares <mj@ucw.cz> Tue, 18 Jun 2024 10:46:23 +0200
......
......@@ -192,6 +192,7 @@ def service_action(cc: ContainerConfig, action: str) -> None:
def cmd_update(args: argparse.Namespace) -> None:
cc = setup_container(args, False)
if not args.no_pull:
progress('Pulling new image')
run_command(
['podman', 'pull', cc.image]
......@@ -440,6 +441,7 @@ def main() -> None:
update_parser = subparsers.add_parser('update', help='update a container from an image', description='Update a container from an image and start it.')
update_parser.add_argument('name', help='name of the container')
update_parser.add_argument('--no-pull', default=False, action='store_true', help='do not pull a new image')
args = parser.parse_args()
get_caller_credentials()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment