Skip to content

Instantly share code, notes, and snippets.

@suneg
Last active January 22, 2018 21:34
Show Gist options
  • Save suneg/ea7c73fd3705d626f3ac356587e5e216 to your computer and use it in GitHub Desktop.
Save suneg/ea7c73fd3705d626f3ac356587e5e216 to your computer and use it in GitHub Desktop.
Simple docker network bridge

Setting up a simple docker bridge

docker network create -d bridge mybridge
docker run --rm --network=mybridge -p=6379:6379 --name=redis redis:3-alpine
docker run --rm --network=mybridge -it -p=443:443 --name=version-frontend version-frontend

Inside frontend container...

/home/version-frontend # ping redis
PING redis (172.19.0.2): 56 data bytes
64 bytes from 172.19.0.2: seq=0 ttl=64 time=0.154 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment