gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

Trying to install Client Mode - youtube video says Netmaker in client mode doesn't use Docker?? #120

Closed bmullan closed 2 years ago

bmullan commented 3 years ago

I want to try Netmaker out across multiple clouds to interconnect LXD (system not app containers) containers.

The Youtube video at the 2:25 mark describes Client Mode doesn't use Docker (which is what I want ! ).

My system is Ubuntu 20.04.

I tried to install netmaker using the script Alex mentions in the video:
https://www.youtube.com/watch?v=krCKBJhwwDk&t=51s

sudo curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/v0.2/netmaker-install-clientmode.sh | sudo SERVER_DOMAIN=< myIP > sh -

However, when I run this I get an error:

$ sudo curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/v0.2/netmaker-install-clientmode.sh | sudo SERVER_DOMAIN=192.168.1.241 sh -
[sudo] password for bmullan:
sh: 7: docker: not found

The script outputs some other docker related error messages and completes

However, Netmaker does not get installed and I can't access the Web UI http

The above curl command does specify Netmaker v0.2

So I looked at the Source on Github for:

https://github.com/gravitl/netmaker/blob/master/netmaker-install-clientmode.sh

and the very last line still uses Docker?

docker run -d --name netmaker-ui -p 80:80 -e BACKEND_URL="http://$SERVER_DOMAIN:8081" gravitl/netmaker-ui:v0.2

If I install Docker then run the "netmaker-install-clienmode.sh" it works? But the video said client-mode doesn't use Docker ?

How do I install client mode w/out Docker use or is there a bug w/some artifact in the client-mode script referencing Docker still ?

Thanks Brian

afeiszli commented 3 years ago

Hi Brian, I should have clarified. The server component of Netmaker does not use docker when you run that script, but MongoDB and the UI are still deployed using Docker. We don't currently have an installer for non-docker, but have written down all the steps here: https://github.com/gravitl/netmaker/blob/master/docs/USAGE.md#non-docker-installation

bmullan commented 3 years ago

@afeiszli thanks... I actually looked at that Usage doc but never scrolled down far enough to see that.

bmullan commented 3 years ago

@afeiszli

Alex, in a previous post in this thread you said:

We don't currently have an installer for non-docker, but have written down all the steps here: https://github.com/gravitl/netmaker/blob/master/docs/USAGE.md#non-docker-installation

that link no longer appears to work? Did the non-docker install steps change? or did you incorporate those steps into the normal Documentation for installation w/out Docker

thanks brian

afeiszli commented 2 years ago

@bmullan the non-docker install steps are now in the docs. They will need some updates but it is a good place to start: https://docs.netmaker.org/server-installation.html#linux-install-without-docker. Post in this thread was from when we were storing docs as markdown in the repo.

catm4n commented 2 years ago

I was able to install Netmaker on a droplet vps rather quickly, however I have not been able to install the netclient on Arch with the script or manually. it fails with a dependency error. I have also not been successful in using the vpnclient config to create a wireguard connection for networkmanager. has anyone been able to get it working on arch using these instuctions? https://itnext.io/how-to-create-four-types-of-vpns-quickly-with-wireguard-and-netmaker-1db7a6270a0f or with wireguard?

afeiszli commented 2 years ago

@catm4n what logs do you get? I'm guessing there's missing dependencies.