User defined networks

  • https://docs.docker.com/network/

Commands

docker network ls
docker network create mynet
docker network ls
docker container run --network mynet --rm -it alpine:latest
docker network rm mynet

Links

Resolving hostnames