Make container start idempotent by dcantah · Pull Request #792 · apple/container

@dcantah

Today it fails in bootstrap the second go around, and we also
have an error handler that automatically cleans up the container
if bootstrap failed which is even worse. This short circuits us
first in the cli if the state is running when we get() the container,
and also adds in a clause to bootstrap to just early return if we
already have a client.

@dcantah dcantah marked this pull request as ready for review

October 21, 2025 18:13

realrajaryan

realrajaryan

0xEDU pushed a commit to 0xEDU/container that referenced this pull request

Oct 21, 2025
Fixes apple#772

Today it fails in bootstrap the second go around, and we also have an
error handler that automatically cleans up the container if bootstrap
failed which is even worse. This change short circuits us first in the
cli if the state is running when we get() the container, and also adds
in a clause to bootstrap to just early return if we already have a
client.

saehejkang pushed a commit to saehejkang/container that referenced this pull request

Oct 28, 2025
Fixes apple#772 

Today it fails in bootstrap the second go around, and we also have an
error handler that automatically cleans up the container if bootstrap
failed which is even worse. This change short circuits us first in the
cli if the state is running when we get() the container, and also adds
in a clause to bootstrap to just early return if we already have a
client.