From 88d5abdf66ae1c108a1993a6d0fe337f29a647b0 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 3 Nov 2023 16:06:27 +0800 Subject: [PATCH] hide websoft9 containers --- docker/deployment/Dockerfile | 2 +- docker/deployment/init_portainer.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/deployment/Dockerfile b/docker/deployment/Dockerfile index bda214c5..5e5efd66 100644 --- a/docker/deployment/Dockerfile +++ b/docker/deployment/Dockerfile @@ -1,4 +1,4 @@ -# modify time: 202310241733, you can modify here to trigger Docker Build action +# modify time: 202311031633, you can modify here to trigger Docker Build action # step1: Build entrypoint execute program init_portainer by golang FROM golang:latest AS builder diff --git a/docker/deployment/init_portainer.go b/docker/deployment/init_portainer.go index 9584dc44..8e2bece1 100644 --- a/docker/deployment/init_portainer.go +++ b/docker/deployment/init_portainer.go @@ -32,7 +32,7 @@ func main() { } // call portainer - cmd := exec.Command("./portainer", "--admin-password-file", filePath) + cmd := exec.Command("./portainer", "--admin-password-file", filePath, "--hide-label", "owner=websoft9") cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr @@ -45,7 +45,7 @@ func main() { } }else{ fmt.Println("credential is exist, skip it.") - cmd := exec.Command("./portainer") + cmd := exec.Command("./portainer", "--hide-label", "owner=websoft9") cmd.Run() }