hide websoft9 containers

This commit is contained in:
qiaofeng1227 2023-11-03 16:06:27 +08:00
parent ffa25d1b2d
commit 88d5abdf66
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

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