Running container from Dockerfile

The following code will create an imaged named "my_image" from a Dockerfile (indicated with the "." character)

docker build -t my_image .

docker run -ti my_image /bin/bash


Explore our projects