Use deploy to container plugin.
Go to the pipeline generator (it is not a plugin, where you write pipeline, there is something like... Pipeline snippet)
Click on that... Chose to deploy to container and fill details...
It will generate a script...Copy that and Paste in your pipeline steps.
Hope this helps!