Running a project within Docker container

Is it possible to run project with predefined Docker container? For instance, projectA will run in container samplerepo/container1 while projectB will run in container anotherrepo/sample-container