Make WordPress Core

Opened 11 days ago

Closed 11 days ago

Last modified 11 days ago

#62395 closed defect (bug) (fixed)

Prevent orphaned conatiners in local Docker environment

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

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.


11 days ago
#1

  • Keywords has-patch added

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

#2 @desrosj
11 days ago

  • Owner set to desrosj
  • Resolution set to fixed
  • Status changed from new to closed

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.