Skip to content

Commit 2c6f9ae

Browse files
committed
Add network cleanup post update
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent d645c70 commit 2c6f9ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

php/EE/Migration/Containers.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static function save_upgraded_image_versions( $current_versions, $new_ver
108108

109109
self::$rsp->add_step(
110110
'prune-old-docker-images',
111-
'EE\Migration\Containers::image_cleanup',
111+
'EE\Migration\Containers::docker_cleanup',
112112
null,
113113
null,
114114
null
@@ -119,8 +119,9 @@ public static function save_upgraded_image_versions( $current_versions, $new_ver
119119
/**
120120
* Prune old and extra EE Docker images.
121121
*/
122-
public static function image_cleanup() {
122+
public static function docker_cleanup() {
123123
EE::exec( 'docker image prune -af --filter=label=org.label-schema.vendor="EasyEngine"' );
124+
EE::exec( 'docker network prune -f --filter=label=org.label-schema.vendor="EasyEngine"' );
124125
}
125126

126127
/**

0 commit comments

Comments
 (0)