Link Docker Container across the Host

My SetUP is as Below

Machine – 1 = couch docker

  • How to enable pdo_mysql in the php docker image
  • When running a Django dev server with docker/fig, why is some of the log output hidden?
  • How to run redmine with a postgresql database using docker compose
  • Getting a “A blocking operation was interrupted by a call to WSACancelBlockingCall” error when consuming Shipyard API using RestSharp
  • Disk out of space on Azure Web app on Linux
  • ERROR: hyperledger/fabric:make gotools: unrecognized import path “golang.org/x/tools/go/gcexportdata”
  • 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

    step-1

    docker network create mynet
    

    Step -2

    docker run -v /home/user1/db:/var/lib/couchdb -p 0.0.0.0:5984:5984 --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 0.0.0.0:3000:3000 --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?

  • OpenWisk Docker Support install fails
  • Restarting Docker Container after reboot
  • Import data on mongodb from docker-compose
  • How to mount a single file in a volume
  • Why pulled image is smaller than original image from the private registry?
  • How to run docker builds from Jenkins on a Mac?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.