See this article in Wikipedia:
https://en.wikipedia.org/wiki/Glacier
Note especially this sentence in the first paragraph:
“Glaciers form only on land and are distinct from the much thinner sea ice and lake ice that forms on the surface of bodies of water.”