It needs docker daemon on both ends. This is just a clever way to share layer between two daemons via ssh.