How to link two docker services in coreos with flannel?

I tried to understand, how to perform a simplest task ever – link two containers running on different coreOS hosts, and failed. As from coreos site documentation, I understood how to simply enable flannel service, but how do you start containers linking each other in systemd services?

Can anybody provide some tutorial where there will be clear even for an idiot steps to start two containers in different coreos virtual machines locally, linked together? Like four simple steps:

  • Docker-based PAAS supporting multiple containers
  • Docker deployment options
  • Is 2 the minimum number of instances to properly deploy a container on AWS?
  • Running OpenSSH in an Alpine Docker Container
  • Docker nfs4 mount on Elastic Beanstalk
  • Docker Jenkins Integration
    1. cloud-config (where you enabling flannel)
    2. systemd file for first docker service (say redis)
    3. systemd file for second docker service (say flask, linking redis)
    4. command to start those two up.


  • docker RUN - not executing script
  • macOS, Dockerfile mounting a folder cannot change locale
  • What is the purpose of putting Wordpress in a Docker container [closed]
  • Exception when running Spark job server in spark standalone mode
  • docker entrypoint running bash script gets “permission denied”
  • Docker Remote API with Weave
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.