diff --git a/boot.sh b/boot.sh index 01e2149..84067c9 100755 --- a/boot.sh +++ b/boot.sh @@ -1,3 +1,5 @@ #! /bin/bash -docker start aircon \ No newline at end of file +docker stop aircon 2>/dev/null +docker rm -f aircon 2>/dev/null +docker run --rm --name aircon -e TZ=Asia/Shanghai --hostname=aircon --net=host --restart=always -v /data/docker/aircon/:/data/aircon/ aircon:latest \ No newline at end of file diff --git a/docker_create.sh b/docker_create.sh deleted file mode 100755 index 5075bce..0000000 --- a/docker_create.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -docker create --name aircon -e TZ=Asia/Shanghai --hostname=aircon --net=host --restart=always -v /data/docker/aircon/:/data/aircon/ aircon:latest \ No newline at end of file