Docker container not save data when rebuild images

why when i update code into github and rebuild image, data lost all
.

  1. create image tag : h/test:v1.0
  2. run docker container
  3. push custom code to github
  4. stop container, remove container
  5. build newimage with tag: h/test:v1.1
  6. run container
  7. all data lossing

all volume i do not remove or change name

anyone here, tks