Skip to content

Machine start from script #26171

Open
Open
@poldolot

Description

@poldolot

I want to start podman machine from script and when script exits with error I want that machine to stay, but now it gets stopped.

How to reproduce:

  1. create script:
#!/bin/bash
podman machine start
echo "sleeping"
sleep 100
  1. press ctrl+c after "sleeping" is displayed
  2. machine is stopped

When there is no interruption and script exits without error then machine stays running.
I'm working on macOS but the same is under Linux.
I've already tried nohup and trap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions