Change nsenter to support docker 'runin'

Refactor nsenter to support docker runin