fix: Docker 内 machine-id 变化

This commit is contained in:
KAAAsS 2024-07-01 15:52:06 +08:00
parent 56b23929f6
commit 84092c252d
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
set -e
docker run -v $(pwd)/loader:/app -it reg.kas.pub/bhyg python3 loader.py
docker run -v $(pwd)/loader:/app -v /etc/machine-id:/etc/machine-id -it reg.kas.pub/bhyg python3 loader.py

View File

@ -1,4 +1,4 @@
#!/bin/sh
set -e
docker run -v $(pwd):/app -it reg.kas.pub/bhyg python3 main.py # $@
docker run -v $(pwd):/app -v /etc/machine-id:/etc/machine-id -it reg.kas.pub/bhyg python3 main.py # $@