Skip to main content

Running your project

Building

Once you have your image, you must build them. In the root of the project (you should see the dockerfile), run the Docker Build command as so:

docker build -t imagename .

the imagename can be anything you want, it will be the name of the image. to add the version (tag), add a :0.0.1 to the name like so

docker build -t imagename:0.0.1 .

Afterward it will be available in the docker desktop, or can be seen with docker images

Running The image in a container

Now we can run it with the following docker run command:

docker run imagename  or docker run imagename:0.0.1

Afterward it will be available in the docker desktop, or can be seen with docker ps