Files
podman/docs/source/markdown/options/update-connection.md
Brent Baude b4ec460ed4 Add update-connection to machine start and init
This allows users to set the associated machine's system connection to the system default when running `podman machine init --now` or `podman machine start`.  It also changes the default bbehavior of these commands in that the user will be prompted and asked if they would like to switch the system connection.  It also introduces a command line switch called `--update-connection`.  If the switch is unset, then the user will be prmpted.  If the command value is explicitly set to `false`, the user will not be prompted and the system connection will not be altered.  If the value is set to `true`, the system connection will be made the default and the user will not be prompted.

Fixes: https://issues.redhat.com/browse/RUN-3632

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-11-04 10:35:28 -06:00

784 B

####> This option file is used in: ####> podman machine init, machine start ####> If file is edited, make sure the changes ####> are applicable to all of those.

--update-connection, -u

When used in conjunction with podman machine init --now or podman machine start, this option sets the associated machine system connection as the default. When using this option, a -u or -update-connection will set the value to true. To set this value to false, meaning no change and no prompting, use --update-connection=false.

If the value is set to true, the machine connection will be set as the system default. If the value is set to false, the system default will be unchanged. If the option is not set, the user will be prompted and asked if it should be changed.