Upgrades¶
Introduction¶
As of 0.9.4, upgrading Netmaker is a manual process. This is expected to be automated in the future, but for now is still a relatively straightforward process.
Upgrade the Server (netmaker)¶
To upgrade the server, you only need to change the docker image versions:
ssh root@my-server-ip
docker compose down
vi docker-compose.yml
Change gravitl/netmaker:<version> and gravitl/netmaker-ui:<version> to the new version.
Save and close the file
docker-compose up -d
Upgrade the Clients (netclient)¶
To upgrade the client, you must get the new client binary and place it in /etc/netclient. Depending on the new vs. old version, there may be minor incompatibilities (discussed below).
Find the appropriate binary for your machine.
Download. E.x.: wget https://github.com/gravitl/netmaker/releases/download/vX.X.X/netclient-myversion
Rename binary to netclient and move to folder. E.x.: mv netclient-myversion /etc/netclient/netclient
netclient –version (confirm it’s the correct version)
netclient pull
This last step helps ensure any newly added fields are now present. You may run into a “panic” based on missing fields and your version mismatch. In such cases, you can either:
Add the missing field to /etc/netclient/config/netconfig-yournetwork and then run “netclient checkin”
or
Leave and rejoin the network