Place carrots and onions in a saucepan, and add water to cover. Bring to a boil; reduce heat and simmer 5 minutes. Drain.
Add remaining ingredients, and bring to a boil. Reduce heat, and simmer 10 minutes.
Pack into hot sterilized jars, leaving 1/4-inch head space. Cover at once with metal lids, and screw bands tight. Process in boiling-water bath for 10 minutes.