🗃️ Committing everything that changed 🗃️

test-image.sh
This commit is contained in:
casjay 2023-08-26 16:12:37 -04:00
parent a01a01d978
commit 5d4f990aa5
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

9
test-image.sh Normal file
View File

@ -0,0 +1,9 @@
IMAGE="";PORT=""
docker rm -f casjaysdevdocker-$IMAGE;
rm -Rf "$HOME/.local/share/srv/docker/casjaysdevdocker-$IMAGE";
docker run -d --pull always --restart always --privileged --name casjaysdevdocker-$IMAGE \
--hostname $IMAGE -e TZ=${TIMEZONE:-America/New_York} \
-v $HOME/.local/share/srv/docker/casjaysdevdocker-$IMAGE/rootfs/data:/data:z \
-v $HOME/.local/share/srv/docker/casjaysdevdocker-$IMAGE/rootfs/config:/config:z \
-p $PORT casjaysdevdocker/$IMAGE:latest
docker ps -a | grep -q "casjaysdevdocker-$IMAGE" && dockermgr log --follow casjaysdevdocker-$IMAGE