Skip to content

Instantly share code, notes, and snippets.

@edwardtheharris
Last active November 23, 2018 21:17
Show Gist options
  • Save edwardtheharris/0ee7e9b0b0fc4c5b1149237ba8feb98f to your computer and use it in GitHub Desktop.
Save edwardtheharris/0ee7e9b0b0fc4c5b1149237ba8feb98f to your computer and use it in GitHub Desktop.
Update the hostname of the Docker VM when running Docker for Mac
docker run -it --rm --uts=host --cap-add SYS_ADMIN busybox
# run from inside the vm
hostname <yourhostname>
exit
@edwardtheharris
Copy link
Author

The original source is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment