Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archenroot/92b4637dc03f29efa8dbded3f87748bc to your computer and use it in GitHub Desktop.
Save archenroot/92b4637dc03f29efa8dbded3f87748bc to your computer and use it in GitHub Desktop.
Docker Container Network
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