How to view or edit environment values when a docker container is running

Today when I migrate vaultwarden, I want to see environment value in old server. So I searched around and learned it. Now let me share with you.

The environment value is in /var/lib/docker/containers/[container-id]/config.v2.json , in which you can view or edit environment values after a docker container is start.

Reference

  1. https://blog.csdn.net/YCJ_xiyang/article/details/109856257