The keepers and wardens of all county jails or state institutions are required to receive and confine all military offenders or other persons when delivered to them, under a certificate of commitment of a military court or commanding officer, for and during the term of sentence or confinement as set forth in said commitment.
Iowa Code § 29A.49