public Network getNetworkByName ( final String networkName ) throws DockerAccessException { for ( Network el : docker . listNetworks ( ) ) { if ( networkName . equals ( el . getName ( ) ) ) { return el ; } } return null ; }
Get a network for a given network name .