Add support for Docker container names, port mappings, links and the publish_all_ports flag

This expands on #5301 to include support for port mappings, links and the publish_all_ports flag in addition to container names. LMK if you have any questions!