A piglet was eating food in a white bag when a dog barked.