@startuml
!include <C4/C4_Container>
' Based on PlantUML changes/bug, spaces in stereotypes (tags) are not working anymore
AddContainerTag("backend Container", $bgColor="#335DA5")
Container(backend2, "With space in stereotype/tag", "Docker Container", $tags="backend Container")
' Without spaces stereotypes (tags) are working
' if space in legend is required, it can be explicitly defined via $legendText
AddContainerTag("backendContainer", $bgColor="#335DA5", $legendText="backend Container")
Container(backend1, "No space in stereotype/tag", "Docker Container", $tags="backendContainer")
SHOW_LEGEND()
@enduml
current (not working anymore sample)
fixed