What you're likely thinking of is the nuclear envelope, which is a double membrane that surrounds the nucleus itself.
Let me know if you'd like more information about the nuclear envelope!