refactor container info function, avoid assuming maas
Merge pull request #144 from mikemccracken/ex-fix-container-info

refactor container info function, avoid assuming maas