OpenSource avtive machine, reverse shell

Do you need to be in a docker to spawn a shell in Werkzeug upload?
if not would be helpfull to know as going in circles here.