Skip to content

Instantly share code, notes, and snippets.

@seanogdev
Created September 20, 2022 22:10
Show Gist options
  • Save seanogdev/53e9d6e836b545d797c2b974855b9570 to your computer and use it in GitHub Desktop.
Save seanogdev/53e9d6e836b545d797c2b974855b9570 to your computer and use it in GitHub Desktop.
Set your docker host based on your context in Fish
# 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