Skip to content

Instantly share code, notes, and snippets.

@giserh
Forked from hrldcpr/install_docker.md
Last active August 29, 2015 14:08
Show Gist options
  • Save giserh/c93c669235a0af38bf19 to your computer and use it in GitHub Desktop.
Save giserh/c93c669235a0af38bf19 to your computer and use it in GitHub Desktop.

Revisions

  1. @hrldcpr hrldcpr renamed this gist Jul 30, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @hrldcpr hrldcpr created this gist Jul 30, 2014.
    23 changes: 23 additions & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    First, install [VirtualBox](https://www.virtualbox.org/wiki/Downloads). Then:

    ```bash
    brew update
    brew upgrade
    brew install docker boot2docker

    mkdir ~/.boot2docker
    curl http://static.dockerfiles.io/boot2docker-v1.1.2-virtualbox-guest-additions-v4.3.12.iso \
    > ~/.boot2docker/boot2docker.iso
    # (get the URL of the latest ISO at
    # https://medium.com/boot2docker-lightweight-linux-for-docker/boot2docker-together-with-virtualbox-guest-additions-da1e3ab2465c)

    boot2docker init
    VBoxManage sharedfolder add boot2docker-vm --name home --hostpath /Users --readonly

    echo 'export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375' \
    >> ~/.profile

    # or if you're using fish:
    # echo 'set -x DOCKER_HOST tcp://(boot2docker ip 2>/dev/null):2375' \
    # >> ~/.config/fish/config.fish
    ```