Docker (software) ================= Docker is a set of products that uses operating system-level virtualization to deliver software in packages called containers. Docker automates the deployment of applications within lightweight containers, enabling them to run consistently across different computing environments. The core software that runs and manages these containers is called Docker Engine. Docker was first released in 2013 and continues to be developed by Docker, Inc. The platform includes both free and paid tiers. Docker is a set of products that uses operating system-level virtualization to deliver software in packages called containers. Docker automates the deployment of applications within lightweight containers, enabling them to run consistently across different computing environments. The core software that runs and manages these containers is called Docker Engine. Docker was first released in 2013 and continues to be developed by Docker, Inc. The platform includes both free and paid tiers. An example of a Dockerfile: ARG CODE_VERSION=latest FROM ubuntu:${CODE_VERSION} COPY ./examplefile.txt /examplefile.txt ENV MY_ENV_VARIABLE="example_value" RUN apt-get update Mount a directory from the Docker volume Note: This is usually specified in the 'docker run' command. VOLUME ["/myvolume"] Expose a port (22 for SSH) EXPOSE 22 Docker Compose is a tool for defining and running multi-container Docker applications. It uses YAML files to configure the application's services and performs the creation and start-up process of all the containers with a single command. The docker compose CLI utility allows users to run commands on multiple containers at once; for example, building images, scaling containers, running containers that were stopped, and more. Commands related to image manipulation, or user-interactive options, are not relevant in Docker Compose because they address one container. The docker-compose.yml file is used to define an application's services and includes various configuration options. For example, the build option defines configuration options such as the Dockerfile path, the command option allows one to override default Docker commands, and more. The first public beta version of Docker Compose (version 0.0.1) was released on December 21, 2013. The first production-ready version (1.0) was made available on October 16, 2014. Docker Swarm provides native clustering functionality for Docker containers, which turns a group of Docker engines into a single virtual Docker engine. In Docker 1.12 and higher, Swarm mode is integrated with Docker Engine. The docker swarm CLI utility allows users to run Swarm containers, create discovery tokens, list nodes in the cluster, and more. The docker node CLI utility allows users to run various commands to manage nodes in a swarm, for example, listing the nodes in a swarm, updating nodes, and removing nodes from the swarm. Docker manages swarms using the Raft consensus algorithm. According to Raft, for an update to be performed, the majority of Swarm nodes need to agree on the update. In addition to the docker swarm CLI, docker stack is a tool designed to manage Swarm services with greater flexibility. It can use a configuration file very similar to a docker-compose.yml , with a few nuances. Using docker stack instead of docker compose offers several advantages, such as the ability to manage a Swarm cluster across multiple machines or the capability to work with docker secret combined with docker context , a feature that allows executing Docker commands on a remote host, enabling remote container management. Docker Volume facilitates the independent persistence of data, allowing data to remain even after the container is deleted or re-created. REFERENCES ---------- [1] Wikipedia BIBLIOGRAPHY (BibTeX) -------------------- @article{ref0, title = {Docker (software)}, url = {https://encyclopegia.org/a/docker-software} } BIBLIOGRAPHY (RIS) ------------------- TY - JOUR TI - Docker (software) UR - https://encyclopegia.org/a/docker-software ER - CITE THIS ARTICLE ---------------- Cite this article: Docker (software) Derived from: https://en.wikipedia.org/w/index.php?oldid=1378632233 Licence: CC BY-SA 4.0 Snapshot: enwiki-001378632233 Permalink: /a/docker-software