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.

  • Docker - Access mapr UI from host
  • Pass argument to dockerfile @ runtime
  • How do I get the address of the host when using 'docker build'?
  • Managing authentication across micro-services
  • Creating a CI pipeline for .net containerized applications
  • libcurl with ares on ubuntu 14.04
  • My local machine has Windows 10 OS.

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

  • At what point are Docker Variables available?
  • How to build a cassandra cluster with docker on a windows machine?
  • What does Docker add to lxc-tools (the userspace LXC tools)?
  • In docker, how can I pass through all found nvidia devices to a container?
  • Connection refused between linked Docker containers in a custom network?
  • Dockerfile automatically run passenger start with Rails
  • 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.