Finding a clutch of alien or monster eggs is a pretty common motif in science fiction (especially science fiction horror) films, so there are probably a good number of films that will be reasonable matches for your description. I am going to mention two of them (in two separate answers) that seem reasonable hypotheses from what you might have seen.
One possibility is Contamination, 1980 Italian production (which desperately tries to convince you it takes place in the United States).
The plot summary, per Wikipedia:
A large ship drifts into New York Harbor, seemingly abandoned. The ship is discovered to be carrying large containers of coffee, hidden inside of which are a series of football-sized green eggs. The crew sent in to explore the ghost ship find the mutilated remains of the former crew gathered in one place, and they soon discover the reason why: when disturbed, the green eggs explode, spraying a viscous liquid over everything. The liquid is toxic to living creatures, and causes the body to immediately explode.
The military's answer to this phenomenon is Colonel Stella Holmes. She establishes a link between the green eggs and a recent mission to Mars that ended badly for the two astronauts who descended to the planet. One of them disappeared, and the other, Commander Hubbard, had a breakdown and subsequently became an alcoholic. When pressed, Hubbard agrees to help Holmes in her investigation of the insidious plot to bring the deadly eggs to Manhattan, and it takes them, along with sarcastic New York cop Tony Aris, to a Colombian coffee plantation. All is not as it seems; Hubbard's former astronaut colleague is apparently alive and well and living under the influence of a monstrous alien cyclops, which is using mind control to further its plot to flood the world with the green eggs and wipe out human life on Earth.
Obviously a ripoff on Alien, the film features eggs found on a deserted freighter (an ordinary ship though, not a spaceship), which shoot dangerous goop at people.
The whole thing is available on YouTube. Here it is, cued up near the eggs' appearance.