This page explains how to get the software you need to use a Linux or macOS machine for Moby development. Before you begin contributing you must have:
- a GitHub account
gitmakedocker
You'll notice that go, the language that Moby is written in, is not listed.
That's because you don't need it installed; Moby's development environment
provides it for you. You'll learn more about the development environment later.
To contribute to the Moby project, you will need a GitHub account. A free account is fine. All the Moby project repositories are public and visible to everyone.
You should also have some experience using both the GitHub application and git
on the command line.
Install git on your local system. You can check if git is on already on your
system and properly installed with the following command:
$ git --versionThis documentation is written using git version 2.2.2. Your version may be
different depending on your OS.
Install make. You can check if make is on your system with the following
command:
$ make -vThis documentation is written using GNU Make 3.81. Your version may be different depending on your OS.
If you haven't already, install the Docker software using the instructions for your operating system. If you have an existing installation, check your version and make sure you have the latest Docker.
To check if docker is already installed on Linux:
docker --version
Docker version 17.10.0-ce, build f4ffd25On macOS or Windows, you should have installed Docker for Mac or Docker for Windows.
$ docker --version
Docker version 17.10.0-ce, build f4ffd25This guide assumes you have added your user to the docker group on your system.
To check, list the group's contents:
$ getent group docker
docker:x:999:ubuntu
If the command returns no matches, you have two choices. You can preface this
guide's docker commands with sudo as you work. Alternatively, you can add
your user to the docker group as follows:
$ sudo usermod -aG docker ubuntuYou must log out and log back in for this modification to take effect.
In the next section, you'll configure the project to be properly recognized by the IDE.
If you don't want to use IDE, you can proceed to the next step and learn how to set up and configure Git for contributing to Moby.