Baltimore County, MD (Zone 7a) A bit of this and a bit of that
Rosemary has a long taproot, so make sure your container is a deep one. And water it only when the soil is really dry, it doesn't like to stay soggy. That's all I can say offhand, but perhaps the rosemary experts will pop up with more tips.