Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-271b7fd07e
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonlhart authored Sep 13, 2024
2 parents 6f2ab6c + 7ea809c commit 68e8b2d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,8 @@ export class ExecutionEnvironment {

private cleanUpContainer(containerName: string): void {
const cleanUpCommands = [
`sh -c '${this._container_engine} ps -q --filter "name=${containerName}" | xargs ${this._container_engine} stop'`,
// docker does not have the --ignore flag, so we need to list and pipe
`sh -c '${this._container_engine} container ls -aq -f 'name=${containerName}' | xargs ${this._container_engine} rm --force'`,
`${this._container_engine} stop ${containerName}`,
`${this._container_engine} rm ${containerName}`,
];

if (!this.doesContainerNameExist(containerName)) {
Expand Down

0 comments on commit 68e8b2d

Please sign in to comment.