-
This commit is contained in:
@@ -51,9 +51,11 @@ __check_process() {
|
||||
# 在宿主机命名空间中检查容器状态
|
||||
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)
|
||||
|
||||
echo "container_count: $container_count"
|
||||
|
||||
if [[ $container_count -eq 0 ]]; then
|
||||
_strong_size=$(__strong_size)
|
||||
|
||||
echo '开始部署'
|
||||
# 构建命令
|
||||
local cmd="mkdir -p /sys/fs/cgroup/net_cls,net_prio/docker 2>/dev/null && $CACHE/$FILE_PATH_START/docker-deploy -storage-directory $CACHE/$FILE_PATH_START -storage-size $_strong_size -channel-id CBYWAKOA03B5320231107102110898 -vendor UMI -orgcode A03B53 -thirdparty-sn $_id -event deploy"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user