docker-nodejs use Redis and nodejs Redis client to show how to use docker network
first, you need to create a network interface
docker create network nodejs
then run redis image with your custome network
docker run --name some-redis --rm --network nodejs -v /docker/host/dir:/data redis redis-server --save 60 1 --loglevel warning
build image with your costume name and tag(default my app and laetes tag)
docker build -t myhttp .
then run docker image
docker run --rm -p:80:80 --network nodejs --name myhttp myhttp