Link Docker Container across the Host

My SetUP is as Below

Machine – 1 = couch docker

  • Difference between service and container in docker compose
  • Docker Containers with different Network Interface
  • Version error in AWS Elastic beanstalk for Multicontainer Docker Configuration
  • docker: command not found with Jenkins build and publish plugin on Mac
  • How to access nodemon log on running docker container
  • Docker registry notifications multiple push
  • Machine – 2 = Web Docker

    How do I connect / link my Web docker to another systems couch docker?

    I tried Below method, but it isn’t working.

    On Machine-1


    docker network create mynet

    Step -2

    docker run -v /home/user1/db:/var/lib/couchdb -p --net mynet --name couch couch:latest

    On Machine-2

    Step – 3

     docker run  -e DB_URL=http://admin:admin@couch:5984/dbname --link couch:couch  -p --net mynet --name web myweb:lates 

    It gives me below error

    docker: Error response from daemon: network mynet not found.
    See 'docker run --help'.

    Any Idea what can be done?

  • Gtk cannot display window while using docker
  • Are there disadvantages when running a docker base image that differs from my distribution?
  • What is docker image location on Windows 10
  • Executing Docker commands with Gradle
  • Docker nginx, which nginx setup is most efficient?
  • Use Docker environment variables for credentials
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.