Last active
November 23, 2018 21:17
-
-
Save edwardtheharris/0ee7e9b0b0fc4c5b1149237ba8feb98f to your computer and use it in GitHub Desktop.
Update the hostname of the Docker VM when running Docker for Mac
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
docker run -it --rm --uts=host --cap-add SYS_ADMIN busybox |
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
# run from inside the vm | |
hostname <yourhostname> | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The original source is here.