serversideup / docker-php

🐳 Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!
https://serversideup.net/open-source/docker-php/
GNU General Public License v3.0
1.67k stars 109 forks source link

S6 Overlay Scripts take a long time to stop #306

Closed jaydrogers closed 1 month ago

jaydrogers commented 5 months ago

Affected Docker Images

Docker Labels of the affected images

No response

Current Behavior

When using the images, especially in Docker Compose, it takes a while for the containers to stop

Expected Behavior

It should quit a lot faster.

Steps To Reproduce

  1. Run a container (docker run --rm serversideup/php:beta-8.3-fpm-nginx)
  2. Press CTRL+C

Host Operating System

N/A

Docker Version

N/A

Anything else?

No response

jaydrogers commented 5 months ago

This might be improved with a finish script https://github.com/just-containers/s6-overlay?tab=readme-ov-file#writing-an-optional-finish-script