Difficulty: beginner
Estimated Time: 3 minutes

Welcome to Docker container Scenario! Here we will learn how to build image from Dockerfile

You have completed this session.

build image, run container and tomcat

Now, you are able to build image on your computer, go ahead!

docker bre

Step 1 of 2

Step 1

Build Image from Dockerfile

Image will be pulled from docker registry.

For more information about the parent image

refer jdk6-mvn3

This image includes

  1. JDK 1.6
  2. MAVEN 3.2.5
  3. TOMCAT 7

Build docker image via command below

docker build -t bre .

After building successfully, check if image bre has been created

docker images

Result should be like it

REPOSITORY IMAGE ID CREATED SIZE
bre XXXXXXXXXXXX 21 seconds ago 823MB