Choose the branch that you need (classic or S) and then build your container with the arg version=(your desired version here)
prebuilt containers can be found here: https://hub.docker.com/r/sephirothkod/omeka-classic and https://hub.docker.com/r/sephirothkod/omeka-s