Github user maskit commented on the issue:
https://github.com/apache/trafficserver/issues/1425
`config_dir` is a read-only configuration. Some of configurations are not
configurable at runtime.
https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html#proxy-config-config-dir
Because overriding takes place WHILE (not before) reading `records.config`,
changing `config_dir` with the environment variable is too late, though
`traffic_layout` shows the new value. Even if you specify the new location in
the config file, it wouldn't work due to the same reason, the file has already
been open.
I've never used `TS_ROOT`, but it might work.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---