app is copied; only logs is mounted
The generated Dockerfile copies app/ into the image. docker run mounts DATA_DIR/logs only, so editing DATA_DIR/app/start.php does not change a running container. Inspect Mounts before attributing stale output to Docker caching.
A reviewed code update therefore needs an image rebuild and container replacement. The installer force-removes the old named container after building, and rewrites the host Dockerfile on each run. Preserve custom build instructions, app files and an appropriate recovery image before choosing a maintenance procedure.
Inspect actual versions before a rebuild
This is a legacy PHP 7.2 compatibility example. Its php:7.2-cli and composer:2.2 tags are mutable; the archive build relaxes APT validation. composer install receives only composer.json at that stage, not a host lock file. The image name alone does not establish dependency reproducibility or safety.
Use the actual container name for the read-only checks below. Record the image ID, mounts, PHP and installed Workerman version. A successful local HTTP status does not establish that edited code or an application transaction ran; review custom request behavior before testing it.
- docker inspect workerman3524 --format '{{.Image}} {{json .Mounts}}'
- docker exec workerman3524 php -v
- docker exec workerman3524 composer show workerman/workerman