Docker – Understanding Images

In previous article we explored the basics of containers and docker concepts, now we will dig deeper and will further explorer the concept of docker images.

Docker Images are the blueprints or templates used to create / run a container. Some of the common examples of docker images can be.

  • Apache HTTP Server
  • Redis Server
  • Java Jar or War package
  • WordPress Image (with Apache Server, PHP Binaries, MySQL installation and copy of wordpress software).

Every docker image will start with a base image such as Ubuntu linux image and you can your image on top of it. However instead of building your image from scratch you can reuse many pre-built images to save your effort. For example to build a wordpress website image you can make use of already available Apache HTTP server and MySQL docker images.

Understanding Dokcerfile

Dokcerfile is used to create a docker image, Dockerfile is just a plain text file with series of instructions / commands for docker image. Some of the common tasks (instructions) within Dockerfile are.

  • Create an environment variable.
  • Create a directory or file.
  • Start HTTP server.

Instructions within docker file will be executed in order while building (using docker build command) docker image and each instruction will will create a new layer within this docker image. In next article we will explore layers within docker image.

Docker images are highly portable and can run on any operating system where docker engine is available.

Shoket Mahmood Ahmed

37 thoughts on “Docker – Understanding Images

  1. Thanks on your marvelous posting! I really enjoyed reading it, you can be a great author. I will be sure to bookmark your blog and will eventually come back in the future. I want to encourage one to continue your great job, have a nice afternoon! Olwen Adolpho Neisa

  2. Congratulations to you both. These are great pictures and wonderful stories. I had not seen your stories before and sort of stumbled into them only this evening. Great web site too. Shandee Johnathan Slater

  3. Est enim effectrix multarum et magnarum voluptatum. Si alia sentit, inquam, alia loquitur, numquam intellegam quid sentiat; Et nunc quidem quod eam tuetur, ut de vite potissimum loquar, est id extrinsecus; Ut optime, secundum naturam affectum esse possit. Olive Rafi Timmons

  4. Hi, I just hopped over to your web-site through StumbleUpon. Not somthing I might typically browse, but I liked your views none the less. Thanks for making something worthy of reading through. Angil Rickard Goldi

  5. Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast. Paloma Ced Starbuck

  6. Que nadie haga caso de este tipo de anuncios . Para invertir hay que asesorarse en la entidad bancaria que uno tenga de siempre, y me mejor aun de un asesor particular y conocido. Sheba Mano Catina

  7. Together with the whole thing that appears to be developing throughout this particular area, all your opinions are generally rather refreshing. Nevertheless, I beg your pardon, but I do not give credence to your whole strategy, all be it stimulating none the less. It looks to everybody that your commentary are actually not totally justified and in reality you are generally yourself not really entirely confident of your assertion. In any event I did take pleasure in reading through it. Shirleen Titus Ozzie

  8. ThanksAppreciationThankfulness to my father who toldinformedshared withstated to me regardingconcerningabouton the topic of this blogweblogwebpagewebsiteweb site, this blogweblogwebpagewebsiteweb site is reallyactuallyin facttrulygenuinely awesomeremarkableamazing. Fern Frasier Livvy

  9. I truly wanted to post a simple word so as to express gratitude to you for all the marvelous strategies you are posting at this website. My time-consuming internet look up has now been recognized with reputable information to go over with my co-workers. I would assume that many of us website visitors are rather lucky to exist in a decent site with very many outstanding professionals with interesting tactics. I feel really lucky to have come across the site and look forward to some more exciting times reading here. Thanks once more for everything. Gayle Carleton Ragen

  10. My water leaves mineral stains inside the instant pot liner. I boil eggs weekly and add a splash of vinegar to the water. It removes the mineral stains and any other cooking stains making the liner sparkle. Of course the vinegar does not affect the taste of the eggs at all. Mathilde Walden Diehl

  11. Takipçi satın almak sadece gelir elde etmek isteyen kişilerin değil hesaplarındaki takipçi sayısını
    yükselterek popüler bir profil oluşturmak isteyen kullanıcılarında
    tercih ettikleri bir yöntemdir
    . Instagram fenomeni olmak için İnstagram takipçi sayınızı
    megatakip adresi ile güvenilir sekilde takipci alabilirsiniz

Leave a Reply

Back to top