mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-17 16:34:42 -05:00
fix(podman): empty DBX_CONTAINER_MANAGER should default to podman
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
committed by
Alessio Biancalana
parent
792dfd20cc
commit
2d010dde14
@@ -77,8 +77,7 @@ func beforeAction(ctx context.Context, cmd *cli.Command) (context.Context, error
|
||||
switch containerManagerType {
|
||||
case "docker":
|
||||
containerManager = providers.NewDocker(root, sudoCommand, verbose)
|
||||
case "podman":
|
||||
case "podman-static":
|
||||
case "podman", "podman-static", "":
|
||||
containerManager = providers.NewPodman(root, sudoCommand, verbose)
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported container manager: %s", containerManagerType)
|
||||
|
||||
Reference in New Issue
Block a user