diff --git a/lib/Command/ExApp/Unregister.php b/lib/Command/ExApp/Unregister.php index 2814d87b..039a7ef4 100644 --- a/lib/Command/ExApp/Unregister.php +++ b/lib/Command/ExApp/Unregister.php @@ -102,6 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($this->dockerActions->removeExApp($this->dockerActions->buildDockerUrl($daemonConfig), $exApp->getAppid(), removeData: $rmData)) { if (!$silent) { $output->writeln(sprintf('Failed to remove ExApp %s', $appId)); + $output->writeln('Hint: If the container was already removed manually, you can use the --force option to fully remove it from AppAPI.'); } if (!$force) { return 1; @@ -112,12 +113,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } } else { + $containerName = $this->dockerActions->buildExAppContainerName($appId); $removeResult = $this->dockerActions->removeContainer( - $this->dockerActions->buildDockerUrl($daemonConfig), $this->dockerActions->buildExAppContainerName($appId) + $this->dockerActions->buildDockerUrl($daemonConfig), $containerName ); if ($removeResult) { if (!$silent) { $output->writeln(sprintf('Failed to remove ExApp %s container', $appId)); + $output->writeln(sprintf('Hint: If the container "%s" was already removed manually, you can use the --force option to fully remove it from AppAPI.', $containerName)); } if (!$force) { return 1;