Skip to content

This repository contains dockerfile examples. It is mainly for the educational purposes. This could be helpful for those people who have just started learning Docker.

License

Notifications You must be signed in to change notification settings

rakeshcusat/hello-world-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

This repository contains dockerfile examples. It is mainly for the educational purposes. This could be helpful for those people who have just started learning Docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published