[Docker] Parse properly ports and links attributes

Hash based attributes were not parsed properly by container_get. This
patch fixes that and adds support for tty, attach_stdin, attach_stdout,
attach_stderr, links, port bindings and exposed ports.
Merge pull request #3272 from eLobato/docker_exposed_ports

[Docker] Parse properly ports and links attributes