CasaOS/pkg/docker/volumes.go
2021-12-29 16:42:20 +08:00

11 lines
205 B
Go

package docker
import "strings"
func GetDir(id, envName string) string {
if strings.Contains(envName, "$AppID") && len(id) > 0 {
return strings.ReplaceAll(envName, "$AppID", id)
}
return envName
}