Try and fix container labels again
This commit is contained in:
@@ -106,7 +106,7 @@ resource "docker_container" "service_container" {
|
||||
dynamic "labels" {
|
||||
for_each = var.labels
|
||||
content {
|
||||
label = labels.label
|
||||
label = labels.key
|
||||
value = labels.value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ variable "pgid" {
|
||||
variable "labels" {
|
||||
description = "Container labels"
|
||||
type = list(object({
|
||||
label = string
|
||||
key = string
|
||||
value = string
|
||||
}))
|
||||
default = []
|
||||
|
||||
@@ -84,8 +84,8 @@ module "coder" {
|
||||
userns_mode = "keep-id:uid=1000,gid=1000"
|
||||
labels = [
|
||||
{
|
||||
label = "run.oci.keep_original_groups"
|
||||
value = "1"
|
||||
key = "run.oci.keep_original_groups"
|
||||
value = "1"
|
||||
}
|
||||
]
|
||||
security_opts = [
|
||||
|
||||
Reference in New Issue
Block a user