docker源码修改后如何构建?

How to build docker source code after modifying it?

我们正在尝试更改 docker 源代码并重新构建它以查看更改

问题 我们无法从源代码本身构建 docker。 我们尝试了: docker 目录中的 make 但我们以错误结束(在 git init 初始化 git 之后):

fatal: Needed a single revision
make: *** [binary] Error 128

This question 没有帮助,因为我们得到了错误:

fatal: Needed a single revision
invalid upstream origin/master

我们在 docker 社区检查了这个问题,他们建议从 docker 存储库克隆目录并重新构建,但我们仍然无法 make来源。

问题 源码修改后如何构建?

按照this link中的说明进行操作:

  1. Get the software you need.

    This explains how to install a couple of tools used in our development environment. What you need (or don’t need) might surprise you.

  2. Configure Git and fork the repo.

    Your Git configuration can make it easier for you to contribute. Configuration is especially key if are new to contributing or to Docker.

  3. Learn to work with the Docker development container.

    Docker developers run docker in docker. If you are a geek, this is a pretty cool experience.

  4. Claim an issue to work on.

    We created a filter listing all open and unclaimed issues for Docker.

  5. Work on the issue.

    If you change or add code or docs to a project, you should test your changes as you work. This page explains how to test in our development environment.

    Also, remember to always sign your commits as you work! To sign your commits, include the -s flag in your commit like this:

    $ git commit -s -m "Add commit with signature example"
    

    If you don't sign Gordon will get you!

  6. Create a pull request.

    If you make a change to fix an issue, add reference to the issue in the pull request.