Comments (9)
@dblohm7 I'd love advice on how to use the shell to query for it's location. I spent an hour and a bit last week trying to parse through online guides to Powershell but didn't find anything useful.
What commands would you use to query for the location of tailscale.exe?
from docker-extension.
@rosszurowski Using cmd
I'd use where
(it's basically identical to which
).
I'm less familiar with PowerShell, but this looks like it's producing what we're looking for:
Get-Command tailscale | Format-Wide -Property Source
from docker-extension.
Perfect, thanks! I'll be running this from Docker's execHostCmd
function, so I'll have to see whether that supports cmd or powershell. I'll give both of these a try.
from docker-extension.
Hmm… I can't get the PowerShell command to work in the terminal
Same with the cmd command
from docker-extension.
Can you check your PATH?
echo %PATH%
in cmd
, or $Env:PATH
in PowerShell
from docker-extension.
Result of echo %PATH%
:
C:\Program Files\Parallels\Parallels Tools\Applications;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Tailscale IPN;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\rosszurowski\AppData\Local\Microsoft\WindowsApps;
Result of $Env:PATH
:
C:\Program Files\Parallels\Parallels Tools\Applications;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Tailscale IPN;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\rosszurowski\AppData\Local\Microsoft\WindowsApps
I may be running an odd environment since it's Windows 11 on ARM, emulated through Parallels (https://github.com/tailscale/corp/issues/3550). If you're confident one of those lines will work for most users, I'll just defer to that.
from docker-extension.
Oh, I know exactly what your problem is!
So Win11 on ARM our path should be in C:\Program Files (x86)
, but that is a known bug in our installation code when using NSIS. So we need to get that fixed in the client. But as far as the plugin is concerned, resolving it using the above technique should be okay.
from docker-extension.
Sounds good. I looked at the Node docs and it seems like the default shell is cmd.exe
. So where tailscale.exe
it is!
from docker-extension.
Example output to parse:
> child_process.exec("where cmd.exe", (err, stdout, stderr) => console.log(err, stdout, stderr))
null C:\Windows\System32\cmd.exe
> child_process.exec("where tailscale.exe", (err, stdout, stderr) => console.log(err, stdout, stderr))
Error: Command failed: where tailscale.exe
INFO: Could not find files for the given pattern(s).
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:520:28)
at ChildProcess.emit (node:domain:537:15)
at maybeClose (node:internal/child_process:1090:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:520:28)
at Socket.emit (node:domain:537:15)
at Pipe.<anonymous> (node:net:687:12)
at Pipe.callbackTrampoline (node:internal/async_hooks:130:17) {
killed: false,
code: 1,
signal: null,
cmd: 'where tailscale.exe'
} INFO: Could not find files for the given pattern(s).
from docker-extension.
Related Issues (20)
- Show tailnet ID HOT 1
- Set up deployment process HOT 1
- Cache Tailscale state for faster startup
- Add bugreport / debugging mechanism
- Add support for Linux desktops HOT 1
- Podman implementation HOT 4
- Add additional extension labels
- Warn when opening in browser but not properly authenticated on host device
- Extension displays `Your host device is not running Tailscale` erroneously [but works just fine] HOT 10
- Warn users when containers are running but not exposed
- Tailscale Desktop not assigning unique static IPs per device HOT 3
- Updating Tailscale docker extension from Docker Hub HOT 1
- Login links do not open with Docker Desktop 4.15.0 HOT 42
- Set up CI to auto-publish the latest Docker extension tag
- Docker Desktop Extension shows host does not have Tailscale installed but it does HOT 2
- Enable Tailscale SSH HOT 3
- How to upgrade tailscale? HOT 9
- Keep docker-extension version synchronized with the stand-alone and app store versions HOT 4
- Docker Desktop does not correctly detect Mac App Store
- Add "open Docker Desktop" to login flow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-extension.