docker

docker是什么

Docker is a platform for developers and sysadmins to develop, deploy, run applications with containers.
A container runs natively on Linux and shares the kernel of the host machine with other containers. It runs a discrete process, taking no more memory than any other executable, making it lightweight.
By contrast, a virtual machine (VM) runs a full-blown “guest” operating system with virtual access to host resources through a hypervisor. In general, VMs provide an environment with more resources than most applications need.

docker.png

虚拟机.png

docker安装

请自行安装

docker安装

请参考https://docs.docker.com/install自行安装

添加国内镜像仓库

docker会从镜像仓库获取镜像文件,切换成国内镜像仓库会加速。
编辑 /etc/docker/daemon.json文件
在其中添加
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}

docker安装

请自行安装

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容