In 1914, Navy Secretary Josephus Daniels banned alcohol from all U.S. Navy property, and ever since the cup of coffee has replaced the sailor’s grog aboard American ships.
https://www.military.com/off-duty/why-wwii-navy-veterans-added-salt-their-coffee.html