Skip to content

Instantly share code, notes, and snippets.

@joelmoss
Forked from philips/gist:7555876
Last active August 29, 2015 13:56
Show Gist options
  • Save joelmoss/8829439 to your computer and use it in GitHub Desktop.
Save joelmoss/8829439 to your computer and use it in GitHub Desktop.

Revisions

  1. joelmoss revised this gist Feb 21, 2014. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,12 @@ WantedBy=local.target
    sudo systemctl restart local-enable.service
    ```

    ## Set `DOCKER_HOST`

    On yor local machine:

    ```
    export DOCKER_HOST=tcp://VAGRANT_IP:4243
    ```

    Have fun!
  2. joelmoss revised this gist Feb 5, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ Description=docker local
    [Service]
    PermissionsStartOnly=true
    ExecStartPre=/usr/bin/systemctl kill docker.service
    ExecStart=/usr/bin/docker -d
    ExecStart=/usr/bin/docker -d -H unix:// -H tcp://
    [Install]
    WantedBy=local.target
  3. @philips philips renamed this gist Nov 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @philips philips created this gist Nov 20, 2013.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    ## Add a local docker unit file

    Create a file called `/media/state/units/docker-local.service` that has the following contents:

    ```
    [Unit]
    Description=docker local

    [Service]
    PermissionsStartOnly=true
    ExecStartPre=/usr/bin/systemctl kill docker.service
    ExecStart=/usr/bin/docker -d

    [Install]
    WantedBy=local.target
    ```

    ## Enable the local docker

    ```
    sudo systemctl restart local-enable.service
    ```

    Have fun!