-3

I'm trying to learn Docker and came to know of term Container. I am bit confused, in most of the online materials which I referred to (understand Docker), the term Container appears somewhere.

Can anyone help me understand what is the difference between Docker and Container and is Docker one of the implementations of Container?

Thanks in advance.

whackamadoodle3000
  • 6,684
  • 4
  • 27
  • 44
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
  • Possible duplicate of [Docker image vs container](https://stackoverflow.com/questions/23735149/docker-image-vs-container) – rigsby Oct 07 '17 at 15:34

2 Answers2

1

A Container is essentially a package(with an embedded application) that can be run anywhere. A Container allows a developer to package an application with all of the dependencies it needs, and ship it as one package.

At a lower level, a Container is an operating system level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel. LXC(Linux Containers) combines the kernel's cgroups and support for isolated namespaces to provide an isolated environment for applications.

Docker is a tool that was designed to make it much easier to create, deploy, and run applications in containers, rather than using LXC(Linux Containers) directly.

grizzthedj
  • 7,131
  • 16
  • 42
  • 62
  • Thanks for you answer. Upon further reading online, does a container have a bare minimum OS as well? And that bare minimum OS utilises the other services from host os? Is this understanding correct? – CuriousMind Oct 10 '17 at 23:41
0

All docker's are containers not all containers are docker.

docker is a strict subset of containers.

A container is a generic term, like you said, docker is a particular implementation of a container system.

rigsby
  • 774
  • 7
  • 20
  • Can you expand your answer, in essence what is a Container? – CuriousMind Oct 07 '17 at 13:59
  • 1
    a container provides an additional layer of abstraction and automation of operating-system-level virtualization. You configure this container and create a snapshot of a system that you might want and it can be stored as a static entity. Often for scalability, reliability, predictability of a runtime. – rigsby Oct 07 '17 at 14:06
  • also [this post](https://stackoverflow.com/questions/23735149/docker-image-vs-container) may provide some nice tidbits :) – rigsby Oct 07 '17 at 14:12