|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/docker-for-beginners-q/
课程评论:没有评论
课程名称: 初学者的Docker 课程概述: Docker是一个开源项目,它自动化了应用程序的开发、部署和在隔离容器中的运行。容器允许开发者将一个应用及其所有需要的部分(如库和其他依赖)打包在一起,并作为一个整体进行交付。Docker既是一个守护进程(在后台运行的进程),也是一个客户端命令。与虚拟机相比,Docker在多个重要方面有所不同。首先,Docker减少了资源的重复利用。在运行更多虚拟机时,会重复虚拟化CPU和内存,导致资源迅速耗尽。而Docker在设置本地开发环境时,可轻松添加正在运行的进程,而无需复制虚拟化资源。其次,Docker更具模块化,能够轻松运行相同程序的多个版本或实例,而无须过多配置和端口冲突。 使用Docker有几个理由,主要集中在以下三点:一致性、速度和隔离性。所谓一致性,指的是Docker为您的应用提供一致的环境,从开发到生产的每一个阶段都以相同的起点运行。关于速度,意味着您可以快速在服务器上运行新的进程,因为镜像已预先配置并装入所需的进程,消除了运行过程中的挑战。至于隔离性,默认情况下,每个正在运行的Docker容器都是与网络、文件系统和其他运行进程相隔离的。 总体而言,该课程为初学者提供了对Docker基础知识的深入理解,为后续在应用程序开发和部署方面的实践打下坚实基础。
Docker is an open-source project that automates the development, deployment and running of applications inside isolated containers. Containers allow developers to bundle up an application with all of the parts it needs, such as libraries and other dependencies, and ship it as one package.Docker is both a daemon (a process running in the background) and a client command. It's like a virtual machine but it's different in important ways. First, there's less duplication. With each extra VM you run, you duplicate the virtualization of CPU and memory and quickly run out resources when running locally. Docker is great at setting up a local development environment because it easily adds the running process without duplicating the virtualized resource. Second, it's more modular. Docker makes it easy to run multiple versions or instances of the same program without configuration headaches and port collisions. There are several reasons to use Docker. I'll focus here on three: consistency, speed and isolation. By consistency, I mean that Docker provides a consistent environment for your application from development all the way through production - you run from the same starting point every time. By speed, I mean you can rapidly run a new process on a server. Because the image is preconfigured and installed with the process you want to run, it takes the challenge of running a process out of the equation. By isolation, I mean that by default each Docker container that's running is isolated from the network, the file system and other running processes.