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.

  • Making use of docker for development: a use case
  • Docker container - how to configure so it gets a viable IP address when running in vagrant?
  • “Dockerized” apps frequently are built on top of OS containers. Why doesn't this defeat the purpose?
  • Content-shell didn't run in docker
  • How can I give Docker containers access to a dnsmasq local DNS resolver on the host?
  • how to install python package using tensorflow docker
  • My local machine has Windows 10 OS.

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

  • Can't read user input inside the Docker using Maven plugin
  • Restarting a docker that runs supervisord programs keeps pid files and causes error at restart
  • Docker Data Container Encryption
  • Bluemix containers - how have a Linux
  • Mesos/Marathon Memory usage limits for Docker
  • Jenkins amazon-ecr plugin issue
  • 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.