Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 924 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 924 Bytes

Dockerfile: Hello World !!

This repository contains Hello world dockerfile examples. It is mainly for the educational purposes. This could be helpful for those people who have just started learning Docker and want to create a simple docker image and execut it.

Installation and execution.

  1. You need to install the required docker packages.
  2. Copy the Dockerfile in the current directory
  3. Run docker build -t hello-world . This will create the docker image which can be verified by running docker images. This command will list all the images present on the host. You will notice hello-world image in the list.
  4. To run the image just execute docker run hello-world and walah it will print hello-world on the console.
  5. If you want to delete file then run docker rmi <image-id>. You can find the image id by executing docker images command.