mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ci/docker] stop removing containers to avoid disrupting chrome (#85425)
Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
parent
159eab7f30
commit
075810bcd3
1 changed files with 5 additions and 1 deletions
|
@ -124,7 +124,11 @@ export class DockerServersService {
|
|||
lifecycle.cleanup.add(() => {
|
||||
try {
|
||||
execa.sync('docker', ['kill', containerId]);
|
||||
execa.sync('docker', ['rm', containerId]);
|
||||
// we don't remove the containers on CI because removing them causes the
|
||||
// network list to be updated and aborts all in-flight requests in Chrome
|
||||
if (!process.env.CI) {
|
||||
execa.sync('docker', ['rm', containerId]);
|
||||
}
|
||||
} catch (error) {
|
||||
if (
|
||||
error.message.includes(`Container ${containerId} is not running`) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue