Skip to content

Instantly share code, notes, and snippets.

@davidmroth
Created April 6, 2024 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmroth/6094a9162b7b5adf6bc581b130bd9884 to your computer and use it in GitHub Desktop.
Save davidmroth/6094a9162b7b5adf6bc581b130bd9884 to your computer and use it in GitHub Desktop.
Docker ENV
export DOCKER_DEFAULT_PLATFORM=linux/amd64
export DOCKER_HOST="tcp://"$(ifconfig enp0s1 | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1 | awk -F"." '{print $1"."$2"."$3".1"}')":2375"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment