From 5d4f990aa5c2fbfe30b0deacfd07d0ad3c8373b3 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 26 Aug 2023 16:12:37 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test-image.sh --- test-image.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test-image.sh diff --git a/test-image.sh b/test-image.sh new file mode 100644 index 0000000..8f9e48f --- /dev/null +++ b/test-image.sh @@ -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