Remote API port

For my Java projects, I am using a Gradle Docker plugin that creates a Docker image from a jar and publishes the image to boot2docker VM using Docker Remote API - all works well.

However, I really like Rancher so I just cloned the rancher repo https://github.com/rancher/rancher and used it to start a master and a host node. The only problem is I can’t figure out the Docker Remote API port which is needed for this plugin to work. Did a lot of searches but no luck. Is there any port exposed by default on RancherOS for the Remote API?

If not, is there any way I can enable it by myself? On Ubuntu I would edit /etc/init/docker.conf and do something like DOCKER_OPTS=’-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock’ but I am not sure how to do this on Rancher.

Looking forward to an answer, I would love for my team to completely move to Rancher and I think this is the main hurdle right now.

Thanks in advance for any help!

By default, RancherOS doesn’t expose anything. You can configure Docker using the cloud-config with the extra_args parameter.

http://docs.rancher.com/os/configuration/docker/