Docker (software) explained

Docker
Docker
Author:Solomon Hykes
Developer:Docker, Inc.
Programming Language:Go
Operating System:Linux, Windows, macOS
Platform:x86-64, ARM, s390x, ppc64le
Genre:OS-level virtualization

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. The service has both free and premium tiers. The software that hosts the containers is called Docker Engine. It was first released in 2013 and is developed by Docker, Inc.

Docker is a tool that is used to automate the deployment of applications in lightweight containers so that applications can work efficiently in different environments in isolation.

Background

Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. Because all of the containers share the services of a single operating system kernel, they use fewer resources than virtual machines.

Operation

Docker can package an application and its dependencies in a virtual container that can run on any Linux, Windows, or macOS computer. This enables the application to run in a variety of locations, such as on-premises, in public (see decentralized computing, distributed computing, and cloud computing) or private cloud. When running on Linux, Docker uses the resource isolation features of the Linux kernel (such as cgroups and kernel namespaces) and a union-capable file system (such as OverlayFS) to allow containers to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines. Docker on macOS uses a Linux virtual machine to run the containers.

Because Docker containers are lightweight, a single server or virtual machine can run several containers simultaneously. A 2018 analysis found that a typical Docker use case involves running eight containers per host, and that a quarter of analyzed organizations run 18 or more per host. It can also be installed on a single board computer like the Raspberry Pi.[1]

The Linux kernel's support for namespaces mostly isolates an application's view of the operating environment, including process trees, network, user IDs and mounted file systems, while the kernel's cgroups provide resource limiting for memory and CPU. Since version 0.9, Docker includes its own component (called) to use virtualization facilities provided directly by the Linux kernel, in addition to using abstracted virtualization interfaces via libvirt, LXC and systemd-nspawn.

Docker implements a high-level API to provide lightweight containers that run processes in isolation.

Licensing model

Components

The Docker software as a service offering consists of three components:

An example of a Dockerfile:[3] ARG CODE_VERSION=latestFROM ubuntu:$COPY ./examplefile.txt /examplefile.txtENV MY_ENV_VARIABLE="example_value"RUN apt-get update

  1. Mount a directory from the Docker volume
  2. Note: This is usually specified in the 'docker run' command.

VOLUME ["/myvolume"]

  1. Expose a port (22 for SSH)

EXPOSE 22

Tools

History

dotCloud Inc. was founded by Kamel Founadi, Solomon Hykes, and Sebastien Pahl during the Y Combinator Summer 2010 startup incubator group and launched in 2011, and renamed to Docker Inc in 2013. The startup was also one of the 12 startups in Founder's Den first cohort. Hykes started the Docker project in France as an internal project within dotCloud, a platform-as-a-service company.

Docker debuted to the public in Santa Clara at PyCon in 2013. It was released as open-source in March 2013. At the time, it used LXC as its default execution environment. One year later, with the release of version 0.9, Docker replaced LXC with its own component, libcontainer, which was written in the Go programming language.

In 2017, Docker created the for open research and development.

Adoption

See also

External links

Notes and References

  1. Web site: Gupta . Devender . 2022-10-13 . How to Install Docker on Raspberry Pi . 2022-10-15 . Gizmoxo . en-US.
  2. Web site: Get Docker.
  3. Web site: 2023-11-14 . Dockerfile reference . 2023-11-30 . Docker Documentation . en.
  4. Web site: McLaughlin. Kevin. 2015-12-22. Oracle Acquires Docker Container Startup StackEngine, Plans Austin-Based Cloud Computing Center. 2022-01-13. CRN.
  5. Web site: Carey. Scott. 2021-08-31. Docker Desktop is no longer free for enterprise users. 2021-10-18. InfoWorld. en.
  6. Web site: Miller . Ron . 2023-12-11 . Docker acquires AtomicJar, a testing startup that raised $25M in January . 2023-12-13 . TechCrunch . en-US.