Created
September 20, 2022 22:10
-
-
Save seanogdev/53e9d6e836b545d797c2b974855b9570 to your computer and use it in GitHub Desktop.
Set your docker host based on your context in Fish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# conf.d/dockerhost.fish | |
if type -f docker | |
set -gx DOCKER_HOST (docker context inspect --format '{{.Endpoints.docker.Host}}') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment