Data loss while running DS-4.0.1 in container.

Hi,
I am new on DS-4.0.1. I am using ds-4.0.1 docker image.
I did follow following things.

sudo docker pull nvcr.io/nvidia/deepstream:4.0-19.07
sudo xhost +
sudo docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root nvcr.io/nvidia/deepstream:4.0-19.07

my problem is when I exit and again run command like

sudo docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root nvcr.io/nvidia/deepstream:4.0-19.07

that time I lost my data which I updated in DS-4.0.1 and all the installation which i did on that.

what should i do please suggest i even not able to upload file directly first i upload on google drive and then i do wget.

Please help me out…
Thanks in advanced.

You can use “docker commit” to create a new docker image with new tag.