I’ve covered the following docker network basic commands in this docker networking tutorial:
docker network ls
docker network create networkName
docker network inspect networkName
docker run –name containerName -d -it –net networkName
imagename options
docker network connect networkName containerName
docker attach containerName
docker exec -it containerName options
docker network disconnect networkName containerName
docker network rm networkName
docker network prune
I hope you will find this docker networking tutorial helpful in understanding the docker networking concepts.
source