Just guessing here.
Behind the scenes, a container is a special kind of block, so I would begin by looking at equivalent block functionality.
(That kind of extrapolation works well enough for layouts and stacks, which are also special kind of blocks)