mirror of
https://github.com/dockersrc/scripts
synced 2024-11-21 05:23:05 -05:00
5d4f990aa5
test-image.sh
10 lines
568 B
Bash
10 lines
568 B
Bash
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
|