Putting in guard time at Great Lakes
Here we see Seaman David J. Lohr, USN. Serving with the Seaman Guard at Great Lakes, Illinois, after Boot Camp, 1917. Note the M1905 bayonet and scabbard with M1903 Springfield rifle to go along with his flat cap and Cracker Jacks.

Copied from the collection of David J. Lohr, by Courtesy of RM1 Pamela J. Boyer, USN, 1986. NH 100998
Next, we have a crisp new Blue Jacket at Great Lakes in the 1960s guarding a stack of M1s and the platoon guidon, likely during chow. Even while the fleet, by and large, was using M14s at the time, M1s (along with M1917s and 1903s) remained in use as training rifles not only there but at Orlando and San Diego for some time.
And M1903A3 drill rifles with M1 bayonets still clocking in to one degree or another in 2002 in the below image. I’ve seen lots of images since then of Great Lakes trainees with M1s but they have all been chromed rubber ducks I believe.

020208-N-5576W-005 Great Lakes, IL (Feb. 8, 2002) — The Honorable Gordon England, Secretary of the Navy, inspects the recruit rifle team during the Recruit Pass in Review Ceremony held at Recruit Training Command Great Lakes, IL. U.S. Navy photo by Photographer’s Mate 1st Class Michael Worner. (RELEASED)