Costco stores were overrun with shoppers over the weekend as customers stocked up on goods to prepare for the spread of the coronavirus.

Photos and videos shared online show long lines of customers both outside and in various Costco stores.

Other images show bare shelves after customers stocked up on staple items.

Visit Business Insider's homepage for more stories.

US and Canadian consumers are flocking to Costco stores to stock up as panic over the spread of the coronavirus intensifies.

Over the weekend, shoppers shared videos and photos of their local Costco stores on social media, documenting the giant lines of customers that stretched outside the store and across the parking lot.

Many of these shoppers also shared pictures of the empty shelves in their local stores.

Here's a look inside: