private void updateModelAccordingToDocker ( ) { try { final ModelHelper modelHelper = new ModelHelper ( context . getNodeName ( ) , docker , factory ) ; final ContainerRoot dockerModel = modelHelper . docker2model ( modelService . getCurrentModel ( ) ) ; modelService . update ( dockerModel , e -> { if ( e == null ) { Log . info ( "Model updated based on the local Docker engine configuration" ) ; } else { Log . warn ( "Failed to update model based on the local Docker engine configuration" , e ) ; } } ) ; } catch ( Exception e ) { Log . warn ( "Failed to update model based on the local Docker engine configuration" , e ) ; } }
Converts the currentModel state of the Docker engine to a Kevoree model . This model is then merged with the currentModel in - use model and deployed .