Docker Issue with Shared PostgreSQL:16 Image
Scenario
Multiple containers rely on the PostgreSQL:16 image.
Issue
When I update the PostgreSQL:16 image, the changes are not reflected in all the containers.
Steps to reproduce
- Pull the updated PostgreSQL:16 image.
- Run a new container using the updated image.
- Verify that the new container is using the updated image.
- Run an existing container.
- Verify that the existing container is still using the old image.
Expected Result
Both new and existing containers should use the updated PostgreSQL:16 image.
Current Result
Existing containers continue to use the old image.
Solutions Tried
Stopping and starting all containers.
Rebuilding the containers.
Recreating the network and reconnecting the containers.
Environment
Docker version: 20.10.16
PostgreSQL:16 image: Pulled from Docker Hub.