Forked from abhinavkorpal/gist:8207ba8f9346901e0c7d987942d189ef
Created
August 8, 2017 16:56
-
-
Save archenroot/92b4637dc03f29efa8dbded3f87748bc to your computer and use it in GitHub Desktop.
Docker Container Network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network ls | |
docker network create --driver bridge isolated_network ## create ~ create custom network, bridge ~ use a bridge network, isolated_network ~ name of the custom network | |
docker network isolated_network | |
docker network inspect isolated_network | |
docker run -d --net=isolated_network --name nodeapp -p 3000:3000 abhinavkorpal/node ## net ~ run container in network, mongodb ~ link to this containe by name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment