what is the syntax for scripted pipeline(i.e. node{} block as the top-level) to use a docker container(from a dockerhub image or dockerfile for example)?
I know how to use declaritive pipeline to do this, just specify a agent block and put docker inside. I want to know how to use scripted pipeline syntax to do so.