Skip to content

setting DOCKER_HOST in bash startup file (.bash_profile) #14

@jayceekay

Description

@jayceekay

Since running the export command in the shell will only set the environment variable temporarily, you > should follow the process on your OS to make it permanent. On a Mac, add the following line to the > ~/.bash_profile:

export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375

wouldn't this only work via .bash_profile if the shells were launched after boot2docker init and boot2docker up were run?

edit: referring to this bit: export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375 in this section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions