Changes lost in xwiki.cfg

I upgraded xwiki from 8.4.5 to 10.11.9 using docker. When I tried to change the xwiki.cfg for LDAP Authentication, I found that after restarting the container, the change of xwiki.cfg will lost. How could I solve this problem?

How did you make the change? Inside the container? From the mapped permanent directory located on your host computer?

Thx