There was a military draft in WW I:
>...By the end of World War I, some two million men volunteered for various branches of the armed services, and some 2.8 million had been drafted.
https://en.wikipedia.org/wiki/Selective_Service_Act_of_1917