Candycanes are a selectively bred form of amelanism. If you're not starting with candycane parents, it could take you many generations of selective breeding to finally hatch out a candycane. And if you DO start with candycane parents, you have a very good chance of hatching them out, but you cannot guarantee that every hatchling will be a candycane.
Normal X ghost (with no other hets in either parent) = 100% normal het anery and hypo (ghost) offspring. Breed 2 of these offspring together or back to the ghost parent and you could get normal, anery, hypo, and ghost offspring.