Last Updated: February 25, 2016
·
416
· aespinosa

Expose Docker's TCP ports on systemd-based distributions

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".

References