Support configured containers in start
This commit is contained in:
parent
73af20ded7
commit
cd9ccec19c
@ -49,7 +49,7 @@ class Container:
|
|||||||
if result['State'] == 'running':
|
if result['State'] == 'running':
|
||||||
target.output.info(f'{self.full_name} already running')
|
target.output.info(f'{self.full_name} already running')
|
||||||
return
|
return
|
||||||
elif result['State'] == 'exited':
|
elif result['State'] in ('exited', 'configured'):
|
||||||
target.output.info(f'{self.full_name} starting')
|
target.output.info(f'{self.full_name} starting')
|
||||||
await target.exec('podman', 'start', self.full_name)
|
await target.exec('podman', 'start', self.full_name)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user