Docker源码阅读-环境准备
docker源码目前分为两部分 cli 和 moby
Starting with the Docker 20.10 release, packages for the Docker Engine and Docker CLI are built directly from their respective source repositories instead of from this repository.
docker-ce:https://github.com/docker/docker-ce
cli:https://github.com/docker/cli
moby: https://github.com/moby/moby
首先在 GOPATH / src 下创建 github.com/docker 目录,然后 git clone cli moby 到这个目录,修改 moby 名称为 docker
mkdir -p $GOPATH/src/github.com/docker cd $GOPATH/src/github.com/docker git clone https://github.com/docker/cli git clone https://github.com/moby/moby mv moby docker
goland 打开阅读源码
作者:MrPei
本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。