mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			230 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			230 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !remote
 | 
						|
 | 
						|
package libpod
 | 
						|
 | 
						|
func networkDisabled(c *Container) (bool, error) {
 | 
						|
	if c.config.CreateNetNS {
 | 
						|
		return false, nil
 | 
						|
	}
 | 
						|
	if !c.config.PostConfigureNetNS {
 | 
						|
		return c.state.NetNS != "", nil
 | 
						|
	}
 | 
						|
	return false, nil
 | 
						|
}
 |