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() }