Get username with dockerspawner

You can inject the user parameter directly into the spawner environment which will be eventually merged with extra_container-spec. You can make c.Spawner.environment a callable to get spawner.user.name which corresponds to your moodle ID. Check this topic on how to do it.

1 Like