Closed balinorLiang closed 1 month ago
VOLUME
is a build time directive. Changing the env at runtime won't change the volume.
VOLUME
is a build time directive. Changing the env at runtime won't change the volume.
Agreed. We wouldn't want a user seeing $PGDATA
as the volume declaration in the Dockerfile and thinking that changing it at runtime will affect it.
Oh, okay, I will close it. Thanks for your explanation @LaurentGoderre and @yosifkit
I find that, we have ENV PGDATA before VOLUME, so I think it's better to use $PGDATA instead of /var/lib/postgresql/data