Can I use Docker switch between Ionic2 and Ionic3

Such as first container is Ionic 2 and the second container is Ionic 3