-
This commit is contained in:
@@ -49,7 +49,7 @@ __strong_size() {
|
||||
|
||||
__check_process() {
|
||||
# 在宿主机命名空间中检查容器状态
|
||||
local container_count=$(nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c 'docker ps -qf name=UMI-agent | wc -l' 2>/dev/null)
|
||||
container_count=$(nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c 'docker ps -qf name=UMI-agent | wc -l' 2>/dev/null)
|
||||
|
||||
if [[ $container_count -eq 0 ]]; then
|
||||
_strong_size=$(__strong_size)
|
||||
|
||||
Reference in New Issue
Block a user