How to connect local container to Docker Swarm remotely

I have Ubuntu 16 server with running docker containers in Swarm mode on it.
Server Docker version is 1.12.5, build 7392c3b.

I want to create Docker container on local machine (or another Ubuntu server) and give this container access to Docker Swarm network on the fist server to be able to request nodes inside Swarm.

  • How to access a remote django app that's running on docker
  • How do I setup a docker image to dynamically pull app code from a repository?
  • Docker Compose: Detect whether image needs to be re-built
  • connect mysql client container to mysql server container Docker
  • Exposed port shows as filtered when using nmap
  • How to get GID of group on host in Dockerfile
  • My local machine has Windows 10 OS.

    Is it possible to give access into Docker Swarm network to Docker remote container?

  • Docker: How to use redirect (command >> file.txt) from CMD[]?
  • REPOSITORY <none> TAG <none>
  • Fig apparently not using volume_from on mysql service
  • Elastic Server Not Starting Due to insufficient Memory
  • Cannot import lxml in python:3.4 docker container
  • I'm having trouble using docker-py in a development environment on OSX
  • One Solution collect form web for “How to connect local container to Docker Swarm remotely”

    Sure. If your local machine joins the swarm (docker swarm join) then it would be part of the swarm overlay network.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.