Expose Docker's TCP ports on systemd-based distributions
2014 September 23
Useful when spawning Fedora, Centos 7, ArchLinux or CoreOS-based Docker hosts for development on a Mac.
[vagrant@docker ~]$ cat /etc/systemd/system/docker.socket.d/10-tcp.conf
[Socket]
ListenStream=5555
[vagrant@docker ~]$
Now on your OSX machine, you can use docker via “docker -H ip-of-vm:5555”.