Finally fixed port mappings
Switched to a more full featured docker API library