If you start a container which creates a new volume, as above, and the container has files or directories in the directory to be mounted (such as /app/ above), the directory’s contents are copied into the volume.
она работает только один раз и если вольюм пустой. Соответственно, если у тебя уже есть вольюм и пересобранный контейнер - файлы в вольюме не обновятся из нового образа