Using a common method to process container name bases on environment.