Skip to content

Instantly share code, notes, and snippets.

@ryenus
Forked from res0nat0r/colima.md
Created September 13, 2024 10:48
Show Gist options
  • Select an option

  • Save ryenus/bdce027b01aba44b8f454ea9c4037219 to your computer and use it in GitHub Desktop.

Select an option

Save ryenus/bdce027b01aba44b8f454ea9c4037219 to your computer and use it in GitHub Desktop.

Revisions

  1. @res0nat0r res0nat0r revised this gist Oct 14, 2022. No changes.
  2. @res0nat0r res0nat0r revised this gist Oct 14, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion colima.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,9 @@ set +o allexport

    Stop Colima `colima stop`

    Set the environment variable in the Colima config. `colima start --edit` or edit `$HOME/.colima/default/colima.yaml`
    Set the environment variable in the Colima config.

    `colima start --edit` or edit `$HOME/.colima/default/colima.yaml`

    ```
    env:
  3. @res0nat0r res0nat0r revised this gist Oct 14, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions colima.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ set +o allexport
    ```

    Stop Colima `colima stop`

    Set the environment variable in the Colima config. `colima start --edit` or edit `$HOME/.colima/default/colima.yaml`

    ```
  4. @res0nat0r res0nat0r revised this gist Oct 14, 2022. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions colima.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,10 @@ Note: this assumes Colima v0.4.0 or newer.

    SSH into the VM `colima ssh`

    Edit docker init script sudo vi /etc/init.d/docker. You can install other editors e.g. sudo apk install vim nano.
    Edit docker init script `sudo vi /etc/init.d/docker`.

    Append with the following:

    Append with the following
    ```
    set -o allexport
    if [ -f /etc/environment ]; then source /etc/environment; fi
  5. @res0nat0r res0nat0r revised this gist Oct 14, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion colima.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    - https://github.com/abiosoft/colima/issues/294#issuecomment-1131440640
    https://github.com/abiosoft/colima/issues/294#issuecomment-1131440640

    ---

    Note: this assumes Colima v0.4.0 or newer.

  6. @res0nat0r res0nat0r revised this gist Oct 14, 2022. No changes.
  7. @res0nat0r res0nat0r created this gist Oct 9, 2022.
    26 changes: 26 additions & 0 deletions colima.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    - https://github.com/abiosoft/colima/issues/294#issuecomment-1131440640

    Note: this assumes Colima v0.4.0 or newer.

    SSH into the VM `colima ssh`

    Edit docker init script sudo vi /etc/init.d/docker. You can install other editors e.g. sudo apk install vim nano.

    Append with the following
    ```
    set -o allexport
    if [ -f /etc/environment ]; then source /etc/environment; fi
    set +o allexport
    ```

    Stop Colima `colima stop`
    Set the environment variable in the Colima config. `colima start --edit` or edit `$HOME/.colima/default/colima.yaml`

    ```
    env:
    HTTP_PROXY: http://proxy.example.com:80
    HTTPS_PROXY: http://proxy.example.com:443
    NO_PROXY: localhost,127.0.0.1,docker-registry.example.com,.corp
    ```

    Start Colima `colima start`