#NEWLINE# def get_docker_container_dicts( docker_client ) : #NEWLINE# #INDENT# containers = docker_client . containers ( all = True ) #NEWLINE# container_dicts = dict ( ) #NEWLINE# for container in containers : #NEWLINE# #INDENT# if ( ( '/' + POSTGIS_CONTAINER ) in container [ 'Names' ] ) : #NEWLINE# #INDENT# container_dicts [ POSTGIS_CONTAINER ] = container #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( '/' + GEOSERVER_CONTAINER ) in container [ 'Names' ] ) : #NEWLINE# #INDENT# container_dicts [ GEOSERVER_CONTAINER ] = container #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( '/' + N52WPS_CONTAINER ) in container [ 'Names' ] ) : #NEWLINE# #INDENT# container_dicts [ N52WPS_CONTAINER ] = container #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return container_dicts