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 upgrade tailscale? #59

Closed
huyz opened this issue Nov 10, 2023 · 9 comments
Closed

How to upgrade tailscale? #59

huyz opened this issue Nov 10, 2023 · 9 comments

Comments

@huyz
Copy link

huyz commented Nov 10, 2023

Installing this extension seems to have installed Tailscale in Docker Desktop somehow.

But the version is outdated. How can one upgrade Tailscale inside Docker for Windows?

@ssghost
Copy link

ssghost commented Jan 12, 2024

I have the same problem, waiting for an answer.

@TijsVK
Copy link

TijsVK commented Jan 18, 2024

You can follow the build instructions, but update ARG TSVERSION=1.48.1 to ARG TSVERSION=1.56.1 (change this to be the most recent version) in the Dockerfile.

The makefile is a little bugged, so I had to run tailscale/docker-extension-dev:latest to install it manually after building.

The UI bugged out too for me when doing this, to connect manually you can simply go into the extension container cli (enable 'Settings>Extensions>show Docker Extension system containers' in settings) and run /app/tailscale up. (while you're there you might as well enable auto update[I haven't tested this] with /app/tailscale set --auto-update)

@ssghost
Copy link

ssghost commented Jan 22, 2024

I followed these steps but the last command /app/tailscale set --auto-update returned an error message says there is no "--auto-update" flag under "set" subcommand. I printed out all subcommands of "/app/tailscale" and found no subcommands are related with "update" or "upgrade". Here is the complete subcommands list:

SUBCOMMANDS
  up         Connect to Tailscale, logging in if needed
  down       Disconnect from Tailscale
  set        Change specified preferences
  login      Log in to a Tailscale account
  logout     Disconnect from Tailscale and expire current node key
  switch     Switches to a different Tailscale account
  configure  [ALPHA] Configure the host to enable more Tailscale features
  netcheck   Print an analysis of local network conditions
  ip         Show Tailscale IP addresses
  status     Show state of tailscaled and its connections
  ping       Ping a host at the Tailscale layer, see how it routed
  nc         Connect to a port on a host, connected to stdin/stdout
  ssh        SSH to a Tailscale machine
  funnel     Turn on/off Funnel service
  serve      Serve content and local servers
  version    Print Tailscale version
  web        Run a web server for controlling Tailscale
  file       Send or receive files
  bugreport  Print a shareable identifier to help diagnose issues
  cert       Get TLS certs
  lock       Manage tailnet lock
  licenses   Get open source license information
  exit-node  

Then I tried with /app/tailscale update. It can run but also returned an error message:

# /app/tailscale update
This will update Tailscale from 1.48.1 to 1.56.1. Continue? [y/n] y
open /etc/apt/sources.list.d/tailscale.list: no such file or directory

You can follow the build instructions, but update ARG TSVERSION=1.48.1 to ARG TSVERSION=1.56.1 (change this to be the most recent version) in the Dockerfile.

The makefile is a little bugged, so I had to run tailscale/docker-extension-dev:latest to install it manually after building.

The UI bugged out too for me when doing this, to connect manually you can simply go into the extension container cli (enable 'Settings>Extensions>show Docker Extension system containers' in settings) and run /app/tailscale up. (while you're there you might as well enable auto update[I haven't tested this] with /app/tailscale set --auto-update)

@TijsVK
Copy link

TijsVK commented Jan 24, 2024

@ssghost According to this line

This will update Tailscale from 1.48.1 to 1.56.1. Continue? [y/n] y

It seems you did not properly build it using the changed dockerfile as 1.48.1 is the default (and auto-update is only available as a flag from version 1.52). As for the update command not working, I haven't tested the self-update functionality so I can't help with that.

@hazcod
Copy link
Contributor

hazcod commented Feb 13, 2024

I'm awaiting a merge in #61

@wimmme
Copy link

wimmme commented Apr 15, 2024

image
Works for me ...

@TijsVK
Copy link

TijsVK commented Apr 25, 2024

@wimmme Notice the version from which tailscale is updating in your case, it seems the extension was updated to a version that supports auto-update (unlike the comments before). This issue is as such not an issue anymore and should be closed.

@huyz
Copy link
Author

huyz commented Apr 25, 2024

It's still an issue to me:

# /app/tailscale set --auto-update
# /app/tailscale update
no latest version found for "stable" track
# /app/tailscale version
1.58.2
  tailscale commit: 6a2a8457f0d62c775bfee3e350d2b34d85eda0f5
  other commit: 8c7d4563e46a1856053912ac067fc5036c2d2b3e
  go version: go1.21.5

@huyz
Copy link
Author

huyz commented Jul 8, 2024

It's still an issue to me:

Oh it worked for me finally.

@huyz huyz closed this as completed Jul 8, 2024
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

5 participants