Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#62395 closed defect (bug) (fixed)

Prevent orphaned conatiners in local Docker environment

Reported by: desrosj Owned by: desrosj
Priority: normal Milestone: 6.8
Component: Build/Test Tools Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

As currently configured, running some local Docker environment commands results in orphaned containers.

For example, running the following commands results in 3 orphaned containers:

  • env:start
  • env:install
  • env:cli plugin list
  • test:php

This can be fixed by includeing --rm in the docker compose commands, telling Docker to clean up after itself.

Change History (3)

This ticket was mentioned in PR #7779 on WordPress/wordpress-develop by @desrosj.


22 months ago
#1

  • Keywords has-patch added

Trac ticket: core.trac.wordpress.org/ticket/62395

#2 @desrosj
22 months ago

  • Owner set to desrosj
  • Resolutionfixed
  • Status newclosed

In 59393:

Build/Test Tools: Prevent orphaned Docker containers.

This updates certain local Docker environment commands to include --rm, which instructs docker compose to remove the container after running the specified scripts.

Previously only the installation script contained --rm. But running test:php, env:start, or env:cli resulted in the container remaining.

Props johnbillion.
Fixes #62395.

Note: See TracTickets for help on using tickets.