Skip to content

Commit a36ff75

Browse files
authored
Merge pull request #1551 from mrrobot47/fix/network-removal
Fix docker network cleanup
2 parents 6157d53 + ed8bba0 commit a36ff75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/commands/src/CLI_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public function self_uninstall( $args, $assoc_args ) {
506506
EE::confirm( "Are you sure you want to remove EasyEngine and all its sites(along with their data)?\nThis is an irreversible action. No backup will be kept.", $assoc_args );
507507

508508
EE::exec( 'docker rm -f $(docker ps -aqf label=org.label-schema.vendor="EasyEngine")' );
509-
EE::exec( 'docker network prune -f $(docker network ls -f "label=org.label-schema.vendor=EasyEngine")' );
509+
EE::exec( 'docker network rm $(docker network ls -f "label=org.label-schema.vendor=EasyEngine" --format="{{.Name}}")' );
510510
EE::exec( 'docker volume rm -f $(docker volume ls -f "label=org.label-schema.vendor=EasyEngine" -q)' );
511511
EE::exec( 'docker image rm $(docker image ls -f "label=org.label-schema.vendor=EasyEngine" -q)' );
512512

0 commit comments

Comments
 (0)