Small refactor to avoid code duplication
Small refactor to avoid code duplication

play-with-docker/play-with-docker,franela/play-with-docker,play-with-docker/play-with-docker,franela/play-with-docker,play-with-docker/play-with-docker,play-with-docker/play-with-docker,franela/play-with-docker,franela/play-with-docker