docker 笔记 -- 概念篇

本文介绍了Docker的基本概念,包括其作为操作系统级虚拟化工具的优势,容器、镜像、Docker守护进程、Docker客户端和Docker Hub的定义及作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 什么是docker?

首先是维基百科的定义,拿来给大家分享。

an open-source project that automates the deployment of software applications inside containers by providing an additional layer of abstraction and automation of OS-level virtualization on Linux.

简言之就是:一个开源项目,通过在Linux上提供操作系统级虚拟化的额外抽象和自动化层,自动在容器内部署软件应用程序。

按照自己的理解:Docker是一个允许开发人员、系统管理员等使用的工具。在沙箱(称为容器)中轻松部署应用程序,以便在主机操作系统(即Linux)上运行。Docker的主要优势在于它允许用户将一个应用程序及其所有依赖项打包到一个标准化的软件开发单元中。与虚拟机不同,容器没有高开销,因此能够更有效地利用底层系统和资源。

官方定义:Docker is a platform for developers and sysadmins to develop, deploy, and run applications with containers. The use of Linux containers to deploy applications is called containerization. Containers are not new, but their use for easily deploying applications is.

简言之:Docker是开发人员和系统管理员使用容器开发、部署和运行应用程序的平台。使用Linux容器来部署应用程序被称为容器化。

  • 什么是containers?

官方定义:A container is a runtime instance of an image--what the image becomes in memory when executed (that is, an image with state, or a user process). You can see a list of your running containers with the command, docker ps, just as you would in Linux.

简言之:容器是镜像的运行时实例——镜像在执行时在内存中变成什么(即,具有状态的镜像或用户进程)。您可以使用命令docker ps查看正在运行的容器列表,就像在Linux中一样。

  • 什么是images?

An image is an executable package that includes everything needed to run an application--the code, a runtime, libraries, environment variables, and configuration files.

简言之:images是一个可执行包,包含运行应用程序所需的一切——代码、运行时、库、环境变量和配置文件。

  • 什么是docker Daemon ?

The background service running on the host that manages building, running and distributing Docker containers. The daemon is the process that runs in the operating system to which clients talk to.

简言之:在主机上运行的后台服务,用于管理构建、运行和分发docker。守护进程是运行在客户端与之对话的操作系统中的进程。

  • 什么是Docker Client ?

The command line tool that allows the user to interact with the daemon. More generally, there can be other forms of clients too - such as Kitematicwhich provide a GUI to the users.

简言之:允许用户与守护进程交互的命令行工具。更一般地说,也可以有其他形式的客户端——比如向用户提供图形用户界面的Kitematic。

  • 什么是Docker Hub ?

registry of Docker images. You can think of the registry as a directory of all available Docker images. If required, one can host their own Docker registries and can use them for pulling images.

简言之:docker images 注册表。您可以将注册表视为所有可用docker image的目录。如果需要,可以托管他们自己的文档注册中心,并使用它们来提取images。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值