public ContainerNetworkingConfig aliases ( NetworkConfig config ) { JsonObject endPoints = new JsonObject ( ) ; endPoints . add ( "Aliases" , JsonFactory . newJsonArray ( config . getAliases ( ) ) ) ; JsonObject endpointConfigMap = new JsonObject ( ) ; endpointConfigMap . add ( config . getCustomNetwork ( ) , endPoints ) ; networkingConfig . add ( "EndpointsConfig" , endpointConfigMap ) ; return this ; }
Add networking aliases to a custom network