Add cleanup before container creation
This commit is contained in:
parent
70b62ddc90
commit
17268e6e0d
@ -1,4 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
|
||||||
|
function terminate_and_remove() {
|
||||||
|
echo Cleaning old container...
|
||||||
|
podman stop creatures-buildenv
|
||||||
|
podman rm creatures-buildenv
|
||||||
|
}
|
||||||
|
|
||||||
|
podman container exists creatures-buildenv && terminate_and_remove
|
||||||
|
|
||||||
toolbox create --image code.helloryan.se/creatures/buildenv/combined-amd64-fedora-41:latest creatures-buildenv
|
toolbox create --image code.helloryan.se/creatures/buildenv/combined-amd64-fedora-41:latest creatures-buildenv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user