mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
hide websoft9 containers
This commit is contained in:
parent
ffa25d1b2d
commit
88d5abdf66
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue