Build and run Dockerfile with one command

Is it possible to build image from Dockerfile and run it with a single command?
There is one command docker build to build a Dockerfile and docker run -it to run the image.

Is there any combination of these two commands to make it easier to build and run with just one command?

9 Answers
9

Leave a Comment