In the terminal this spawns, you can run any script with dolfinx in it. Everything is installed.
As you probably want to write scripts on your own computer, you should mount a volume (share a directory of your computer with the docker container).
See for instance Installation problems - #16 by dokken
and all subsequent posts