He was still in Virginia when the war ended and served a great part of his service with the wagon train that carried supplies for the 7th.
At the time General Lee surrendered, Pvt. Dugger and the wagon train were a considerable distance from Appomattox resulting in him signing an Oath of Allegience some time later.