Can microsoft .net core 2.2 sdk docker container be used for building 2.1 and 2.2 targeted projects

I have several .net core 2.1 and 2.2 projects that will be built using on-premises servers that run Docker containers for the build workspaces. I am planning to use the image to build the 2.1 projects, and the image to build the 2.2 projects, but I’d like to simplify things if I can. Is it advisable to use just the image to build both 2.1 and 2.2 projects, and get rid of the 2.1 sdk image?

Source: StackOverflow