spiegel_podman/cmd/podman/machine
Ashley Cui 9abe8c7853 Introduce podman machine os apply
Podman machine os apply takes a takes a OCI image with container native ostree functionality and rebases the machine os on that image.
Currently, this requires the guest os inside the vm to use rpm-ostree.

When specifying an image, any container transport may be specified. If a
container transport is not specified, OS apply will attempt to search
the local containers-storage for the image, and if it is not found, it
will then attempt to use the Docker transport to pull from a remote
registry.

The architecture of OS apply is as follows:
podman machine os apply ssh's into the machine and calls podman machine os
apply. on the secondary call to podman machine os apply, apply
recognizes that it is inside the machine and does image operations, and
finally calls rpm-ostree rebase.

Tests are written but commented out, due to the chicken-and-egg problem.

Signed-off-by: Ashley Cui <acui@redhat.com>
2023-02-15 14:48:12 -05:00
..
os Introduce podman machine os apply 2023-02-15 14:48:12 -05:00
info.go podman machine info: use report.Formatter over Template 2022-09-13 10:33:14 +02:00
init.go Remove references to qcow2 2022-12-25 10:49:47 -06:00
inspect.go podman machine inspect: use report.Formatter over Template 2022-09-13 10:33:13 +02:00
list.go Unify --noheading and -n to be consistent on all commands 2022-12-19 13:18:43 -05:00
machine.go Podman machine info 2022-07-05 15:18:41 -04:00
machine_unix.go Fix podman machine on Windows 2022-06-30 16:21:59 -05:00
machine_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
machine_windows.go Fix podman machine on Windows 2022-06-30 16:21:59 -05:00
os.go Introduce podman machine os apply 2023-02-15 14:48:12 -05:00
platform.go Add interface for apple hypervisor 2022-08-08 14:04:49 -05:00
platform_windows.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
rm.go Only allow Rootless runs of Podman Machine 2022-06-29 09:19:09 -04:00
set.go Only allow Rootless runs of Podman Machine 2022-06-29 09:19:09 -04:00
ssh.go podman machine ssh handling 2022-09-26 18:35:01 -04:00
start.go Add --quiet and --no-info flags to podman machine start 2022-11-11 16:14:20 -05:00
stop.go Only allow Rootless runs of Podman Machine 2022-06-29 09:19:09 -04:00