macos.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Mac OS X and other linux
  2. ========================
  3. Please note this is a community contributed installation path. The only 'official' installation is using the :ref:`ubuntu_linux` installation path. This version
  4. may be out of date because it depends on some binaries to be updated and published
  5. Requirements
  6. ------------
  7. We currently rely on some Ubuntu-linux specific packages, this will change in the future, but for now we provide a
  8. streamlined path to install Virtualbox with a Ubuntu 12.10 image using Vagrant.
  9. 1. Install virtualbox from https://www.virtualbox.org/ (or use your package manager)
  10. 2. Install vagrant from http://www.vagrantup.com/ (or use your package manager)
  11. 3. Install git if you had not installed it before, check if it is installed by running
  12. ``git`` in a terminal window
  13. We recommend having at least about 2Gb of free disk space and 2Gb RAM (or more).
  14. Installation
  15. ------------
  16. 1. Fetch the docker sources
  17. .. code-block:: bash
  18. git clone https://github.com/dotcloud/docker.git
  19. 2. Run vagrant from the sources directory
  20. .. code-block:: bash
  21. vagrant up
  22. Vagrant will:
  23. * Download the Quantal64 base ubuntu virtual machine image from get.docker.io/
  24. * Boot this image in virtualbox
  25. Then it will use Puppet to perform an initial setup in this machine:
  26. * Download & untar the most recent docker binary tarball to vagrant homedir.
  27. * Debootstrap to /var/lib/docker/images/ubuntu.
  28. * Install & run dockerd as service.
  29. * Put docker in /usr/local/bin.
  30. * Put latest Go toolchain in /usr/local/go.
  31. You now have a Ubuntu Virtual Machine running with docker pre-installed.
  32. To access the VM and use Docker, Run ``vagrant ssh`` from the same directory as where you ran
  33. ``vagrant up``. Vagrant will make sure to connect you to the correct VM.
  34. .. code-block:: bash
  35. vagrant ssh
  36. Now you are in the VM, run docker
  37. .. code-block:: bash
  38. docker
  39. Continue with the :ref:`hello_world` example.