Accept numbered versions for V1 and named ones for V2
Accept numbered versions for V1 and named ones for V2

V1 reads the versions from DOCKER_IMAGE_SETTINGS and keeps only the
numbered ones.

V2 only accepts `stable` and `latest` (they are hardcoded because they
don't change).

rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org