30 lines
660 B
Bash
30 lines
660 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# . CONFIG.sh
|
||
|
|
|
||
|
|
# set -o xtrace ## To debug scripts
|
||
|
|
# set -o errexit ## To exit on error
|
||
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
||
|
|
|
||
|
|
|
||
|
|
function main() {
|
||
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||
|
|
cd "${SCRIPTPATH}"
|
||
|
|
echo "Working Dir: " $(pwd)
|
||
|
|
|
||
|
|
podman container prune
|
||
|
|
podman image prune
|
||
|
|
podman volume prune
|
||
|
|
podman network prune
|
||
|
|
|
||
|
|
podman machine stop
|
||
|
|
podman machine reset
|
||
|
|
# podman machine init
|
||
|
|
podman machine init --rootful
|
||
|
|
podman machine set --memory 4096
|
||
|
|
# podman machine set --cpus 2 --memory 4096
|
||
|
|
podman machine start
|
||
|
|
}
|
||
|
|
main $@;
|
||
|
|
|