Factor out container option mapping into its own method

Signed-off-by: Michael Malet <MichaelMa@square-enix.com>
Use dockerpty.PseudoTerminal so that options can be supported

Signed-off-by: Michael Malet <MichaelMa@square-enix.com>