since onions are a vegetable, they must be pressure canned to avoid the potential of botulism poisoning. to can onions, select onions that are 1-inch in diameter or less. wash and peel the onions. use the hot pack technique of canning the onions.