Hi flash to nvme will not work with your docker configuration. It works best with bare metal configuration.
However, can you add these options
--user=0:0 --privileged --network=host --volume=/dev:/dev --volume=/var/run/docker.sock:/var/run/docker.sock --volume=/var/run/dbus:/var/run/dbus:ro --volume /etc/udev/:/etc/udev/ --volume /run/udev:/run/udev:ro
to your docker command to see if it is possible to flash to NVMe?