mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	 30e731ecc8
			
		
	
	30e731ecc8
	
	
	
		
			
			Commit 800a2e2d35 introduced a way to disable the conversion of `--`into an en dash on docs.podman.io, so the ugly workaround of escaping the dashes is no longer necessary. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| % podman-network-inspect(1)
 | |
| 
 | |
| ## NAME
 | |
| podman\-network\-inspect - Displays the raw CNI network configuration for one or more networks
 | |
| 
 | |
| ## SYNOPSIS
 | |
| **podman network inspect** [*options*] [*network* ...]
 | |
| 
 | |
| ## DESCRIPTION
 | |
| Display the raw (JSON format) network configuration.
 | |
| 
 | |
| ## OPTIONS
 | |
| #### **--format**, **-f**
 | |
| 
 | |
| Pretty-print networks to JSON or using a Go template.
 | |
| 
 | |
| ## EXAMPLE
 | |
| 
 | |
| Inspect the default podman network
 | |
| 
 | |
| ```
 | |
| # podman network inspect podman
 | |
| [{
 | |
|     "cniVersion": "0.3.0",
 | |
|     "name": "podman",
 | |
|     "plugins": [
 | |
|       {
 | |
|         "type": "bridge",
 | |
|         "bridge": "cni0",
 | |
|         "isGateway": true,
 | |
|         "ipMasq": true,
 | |
|         "ipam": {
 | |
|             "type": "host-local",
 | |
|             "subnet": "10.88.1.0/24",
 | |
|             "routes": [
 | |
|                 { "dst": "0.0.0.0/0" }
 | |
|             ]
 | |
|         }
 | |
|       },
 | |
|       {
 | |
|         "type": "portmap",
 | |
|         "capabilities": {
 | |
|           "portMappings": true
 | |
|         }
 | |
|       }
 | |
|     ]
 | |
| }
 | |
| ]
 | |
| ```
 | |
| 
 | |
| ```
 | |
| # podman network inspect podman --format '{{(index  .plugins  0).ipam.ranges}}'
 | |
| [[map[gateway:10.88.0.1 subnet:10.88.0.0/16]]]
 | |
| ```
 | |
| 
 | |
| ## SEE ALSO
 | |
| podman(1), podman-network(1), podman-network-ls(1)
 | |
| 
 | |
| ## HISTORY
 | |
| August 2019, Originally compiled by Brent Baude <bbaude@redhat.com>
 |