
上QQ阅读APP看书,第一时间看更新
Docker network
The docker network commands enable you to manage the Docker network stuff via the command line. There are six basic commands, and the commands are self-explanatory:
- docker network create
- docker network connect
- docker network ls
- docker network rm
- docker network disconnect
- docker network inspect
docker network create, docker network ls, and docker network rm are the main commands. It is possible to compare them with the Linux commands, where the rm command is used to remove things and the ls command is usually used to list things such as folders. The create command should be used to create networks.
The docker network connect and docker network disconnect commands allow you to connect the running container to the desired network. They may be useful in some scenarios.
Finally, the docker network inspect command provides detailed information on the requested network.