2013-06-01 22:03:12 -07:00
:title: Setting Up a Dev Environment
2013-03-25 19:52:52 -07:00
:description: Guides on how to contribute to docker
:keywords: Docker, documentation, developers, contributing, dev environment
2013-06-01 22:03:12 -07:00
Setting Up a Dev Environment
2013-03-25 19:52:52 -07:00
============================
2013-06-06 12:36:28 +00:00
Instructions that have been verified to work on Ubuntu Precise 12.04 (LTS) (64-bit),
Dependencies
------------
**Linux kernel 3.8**
Due to a bug in LXC docker works best on the 3.8 kernel. Precise comes with a 3.2 kernel, so we need to upgrade it. The kernel we install comes with AUFS built in.
.. code-block :: bash
# install the backported kernel
sudo apt-get update && sudo apt-get install linux-image-generic-lts-raring
# reboot
sudo reboot
Installation
------------
2013-03-25 19:52:52 -07:00
2013-04-02 04:26:00 +03:00
.. code-block :: bash
2013-06-05 13:19:49 +00:00
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:gophers/go
sudo apt-get update
2013-06-14 14:34:30 -07:00
sudo apt-get -y install lxc xz-utils curl golang-stable git aufs-tools
2013-03-25 19:52:52 -07:00
export GOPATH=~/go/
export PATH=$GOPATH/bin:$PATH
mkdir -p $GOPATH/src/github.com/dotcloud
cd $GOPATH/src/github.com/dotcloud
2013-05-12 21:46:35 -04:00
git clone git://github.com/dotcloud/docker.git
2013-03-25 19:52:52 -07:00
cd docker
go get -v github.com/dotcloud/docker/...
go install -v github.com/dotcloud/docker/...
2013-03-29 17:30:10 -07:00
2013-03-25 19:52:52 -07:00
Then run the docker daemon,
2013-04-02 04:26:00 +03:00
.. code-block :: bash
2013-03-25 19:52:52 -07:00
sudo $GOPATH/bin/docker -d
2013-03-29 17:30:10 -07:00
2013-03-25 19:52:52 -07:00
Run the `` go install `` command (above) to recompile docker.