U.S. grocers are adjusting their operations to try to keep up with customers who are emptying their shelves amid angst over the new coronavirus, even as their own employees face heightened risk of infection.

Across the country, lines to get into stores snaked around corners, checkout times stretched as long as an hour and whole aisles were rendered bare this week as companies told more workers to stay home and schools began to cancel classes.

...