The process demonstrated can be adapted to a wide variety of environments, containers or not.
It's mostly about making a literate program, executable on the spot, sort of like a Jupyter notebook, only for shell commands (or nearly anything, frankly).