首页 > 其他 > 详细

Docker源码阅读-环境准备

时间:2021-07-09 00:26:53      阅读:23      评论:0      收藏:0      [点我收藏+]

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 打开阅读源码

Docker源码阅读-环境准备

原文:https://www.cnblogs.com/mrpei/p/14987619.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!