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.
虚拟机.png
docker安装
请自行安装
docker安装
请参考https://docs.docker.com/install自行安装
添加国内镜像仓库
docker会从镜像仓库获取镜像文件,切换成国内镜像仓库会加速。
编辑 /etc/docker/daemon.json文件
在其中添加
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
docker安装
请自行安装
网友评论