support systems with SELinux

This commit is contained in:
Late Night Defender 2024-05-17 15:39:22 +07:00
parent 8c03ef0772
commit d36910474a

View file

@ -71,8 +71,8 @@ func dockerRunMongo() {
},
},
Binds: []string{
fmt.Sprintf("%s/mongo%d:/data/db", mongoBasePath, containerNumber),
fmt.Sprintf("%s:/opt/keyfile", mongoBasePath),
fmt.Sprintf("%s/mongo%d:/data/db:z", mongoBasePath, containerNumber),
fmt.Sprintf("%s:/opt/keyfile:z", mongoBasePath),
},
NetworkMode: container.NetworkMode(networkName),
RestartPolicy: container.RestartPolicy{