Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove the interfaces again and uninstall everything? #12

Open
Yesyoor opened this issue Jun 19, 2022 · 2 comments
Open

How to remove the interfaces again and uninstall everything? #12

Yesyoor opened this issue Jun 19, 2022 · 2 comments

Comments

@Yesyoor
Copy link

Yesyoor commented Jun 19, 2022

Hey it does not work for me and now I have this tool on my machine. How can I delete the interfaces again and uninstall it ?

@gregnr
Copy link
Member

gregnr commented Jun 21, 2022

Hey @Yesyoor! Sorry to hear you're having issues with the tool.

The app was designed to be as simple and un-bloated as possible. Since it is installed using brew, you can perform the reverse actions to uninstall:

  1. Stop the brew service (don't forget sudo):
    sudo brew services stop chipmk/tap/docker-mac-net-connect
  2. Uninstall the brew formula:
    brew uninstall chipmk/tap/docker-mac-net-connect

After stopping the service, the virtual interfaces will disappear. These interfaces can actually only live for as long as the process is running.

Ps. The brew CLI --help option provides some decent documentation on what's happening with services:

$ brew services --help
Usage: brew services [subcommand]

Manage background services with macOS launchctl(1) daemon manager.

If sudo is passed, operate on /Library/LaunchDaemons (started at boot).
Otherwise, operate on ~/Library/LaunchAgents (started at login).

...

[sudo] brew services start (formula|--all|--file=):
    Start the service formula immediately and register it to launch at login
(or boot).

[sudo] brew services stop (formula|--all):
    Stop the service formula immediately and unregister it from launching at
login (or boot).

...

It goes without saying that I would love to help debug the issue you were having if you're open to it. We're always trying to improve this tool to accommodate the different dev environments people are working with.

@Yesyoor
Copy link
Author

Yesyoor commented Jun 21, 2022

@gregnr
Hey thank you very much for the fast and detailed reply!
The second cmd failed for me and it said I have to run:
sudo rm -rf /usr/local/Cellar/docker-mac-net-connect/v0.1.2

Which I did. Upon installing it there was something mentioned about files which I would have to manage manually.
Unfortunately I don't remember which they were. Are they also cleaned up, or is the management handled back automatically?

Now why I tied this tool, and maybe it was not even made for that, I honestly lack some knowledge about network related things:

I have implemented an authorisation server, a gateway server and a lobby server and wanted to run them as pods on a Minikube.
It all worked fine except that I could't connect to it from my client running on the same host machine. This is a docker/ Minikube related issue though which apparently only exists on MacOS. I hoped for your tool to make my nodeports accessible but it didn't (and maybe is not supposed to do so at all). The solution has been to run the Minikube using the virtual box driver, which as I heard only solves it on intel based Macs.

@Yesyoor Yesyoor changed the title How to remove those interfaces again and uninstall everything? How to remove the interfaces again and uninstall everything? Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants