- Docker and Kubernetes for Java Developers
- Jaroslaw Krochmalski
- 253字
- 2021-07-02 18:44:53
Networking commands
The parent command for managing networks in Docker is docker network. You can list the whole command set using the docker network help command, as you can see in the following screenshot:

To have a detailed syntax and description of each option available for a specific command, use the -help switch for each of the commands. For example, to get the description of parameters available for docker network create, execute the docker network create -help.
Let's briefly describe each command available:
- $ docker network ls: This is the command we have been using previously, it simply lists networks available for your containers. It will output the network identifier, its name, the driver being used, and a scope of the network
- $ docker network create: Creates new network. The full syntax of the command is, docker network create [OPTIONS] NETWORK. We will use the command in a short while
- $ docker network rm: The dockercnetworkcrm command simply removes the network
- $ docker network connect: Connects the container to the specific network
- $ docker network disconnect: As the name suggests, it will disconnect the container from the network
- $ docker network inspect: The docker network inspect command displays detailed information about the network. It's very useful, if you have network issues. We are going to create and inspect our network now
The docker network inspect command displays detailed information about the network. It's very useful if you have network issues. We are going to create and inspect our network now.
推薦閱讀
- 一步一步學(xué)Spring Boot 2:微服務(wù)項(xiàng)目實(shí)戰(zhàn)
- GeoServer Cookbook
- 控糖控脂健康餐
- React Native Cookbook
- JavaScript 網(wǎng)頁(yè)編程從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開發(fā)視頻大講堂)
- Apache Spark Graph Processing
- INSTANT CakePHP Starter
- Mastering C# Concurrency
- CouchDB and PHP Web Development Beginner’s Guide
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第2版)(微課版)
- Scala程序員面試算法寶典
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- C#程序設(shè)計(jì)(項(xiàng)目教學(xué)版)
- QGIS Python Programming Cookbook(Second Edition)
- Django 5企業(yè)級(jí)Web應(yīng)用開發(fā)實(shí)戰(zhàn)(視頻教學(xué)版)