•  Home
  •  Dashboard
  •  Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDoS Protection
    • IP Transit
    • Backup
    • CDN
    • GGA
  •  Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  •  Support
    • Knowledgebase
    • Community
    • Open Ticket
  •  Company
    • About Us
    • Contact Us
    • Network
    • Data Centers
    • Looking Glass
    • Affiliates
    • Reseller
    • Blog
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • GGA
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Docker container vs Image

Trusted By
25,000+ Customers (Since 2001)
  • Home
  • Client
  • Qa Forum
  • Docker container vs Image

Posted By: Chris | 1 Replies | Last Reply On: Oct 27, 2017 12:13:01

How is a docker container different from an image?  Which one is preferred? 

Psychz - Ramesh

Votes: 0Posted On: Oct 27, 2017 12:13:01
 

Images and Containers are often used interchangeably. However, they are not the same and functions differently.
Let me explain you both with simplest of example
 
A docker image is like an application which has an executable file on disk. They are never running.
On the other hand, When you execute an application, it creates an instance in memory that is running. This is like a Docker container.
 
Okay, let me put it in more simpler words,
 
A docker image contains an operating system along with many applications. Whereas, a container is running an instance generated from an image.
So now each time you start a container from an image, you are actually “starting over”. Which means that changes made to a container do not carry over to the base image. However, changes made within a container are saved since they are captured in that specific container’s filesystem layer.

Was this reply helpful?

Related topics

  • Docker Container vs VM
  • SSH into Docker Container
  • Red Hat: Not just about Linux anymore!
  • LXD vs Docker
  • Docker swarm vs Kubernetes
  • Docker Remove All Containers
  • How to remotely connect to a Linux machine using a smartphone?
  • Most Common Linux Distros
  • How To Be A Successful Hosting Reseller
  • How to mount ISO via IPMI Management Web Interface
  • How To Remotely Connect To Windows Server?
  • Centos add virtual IP(s)
  • CDN Hosting and why Every website should utilize a CDN
  • Best Open Source Cloning Software
  • Regex: regular expression cheat sheet
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2021 Psychz Networks, A Profuse Solutions Inc Company