Commit Graph

149 Commits

Author SHA1 Message Date
tom mortensen e4316770d7 Merge pull request #1925 from dlandon/dropdowns_misplaced_andnot_working
Fix drop downs not working.
2024-11-20 10:17:05 -08:00
dlandon 998b10587e Fix drop downs not working. 2024-11-18 15:44:19 -06:00
tom mortensen b7200298fd Merge pull request #1923 from ich777/ich777-ts-update
Run container network check if network is changed in Docker
2024-11-15 16:03:56 -08:00
Christoph faf1c48324 Updates and Fixes
- Make sure to retrigger check for Tailscale each time user changes network
2024-11-08 21:44:59 +01:00
Christoph Hummer 5bf8d722f9 Fix for tooltipster click not working
- Tooltip now opens on `hover` and `click`
2024-11-04 19:23:20 +01:00
Christoph Hummer ba9caaaff4 Change Version to Tailscale 2024-10-30 21:18:59 +01:00
Christoph Hummer a4911a1338 Update DockerContainers.php 2024-10-30 18:47:39 +01:00
Christoph Hummer d1d8e4767f Update style-white.css 2024-10-30 18:47:15 +01:00
Christoph Hummer 2d7038c7d4 Update style-gray.css 2024-10-30 18:47:06 +01:00
Christoph Hummer ea843dc67a Update style-black.css 2024-10-30 18:46:59 +01:00
Christoph Hummer c47a778de2 Update style-azure.css 2024-10-30 18:46:51 +01:00
Christoph Hummer 92cc9ba36d remove unnecessary div 2024-10-30 16:28:16 +01:00
Christoph Hummer a1d10107b5 remove unnecessary div 2024-10-30 16:28:09 +01:00
Christoph Hummer 78af653558 remove unnecessary div 2024-10-30 16:28:00 +01:00
Christoph Hummer 13bb3414b4 remove unnecessary div 2024-10-30 16:27:53 +01:00
Christoph Hummer 1c520dcdc4 remove unnecessary div 2024-10-30 16:27:26 +01:00
Christoph Hummer f1a3e391a1 Update DockerContainers.php 2024-10-30 12:36:56 +01:00
Christoph Hummer 05119aaa81 Update style-azure.css 2024-10-30 12:27:08 +01:00
Christoph Hummer 575978e147 Update style-black.css 2024-10-30 12:26:52 +01:00
Christoph Hummer c0a33df5aa Update style-gray.css 2024-10-30 12:26:34 +01:00
Christoph Hummer 28cbf0abe1 Update style-white.css 2024-10-30 12:26:16 +01:00
Christoph Hummer c1fc0a0418 Update DockerContainers.php
- Update formatting to support `tooltipster`
2024-10-30 12:25:51 +01:00
Christoph Hummer 6d7fb688db Update DockerContainers.page
- Initialize `tooltipster` for TS_tooltip elements and insert into `head`
2024-10-30 12:22:44 +01:00
Squidly271 8dfd63e5a7 Update tswebui 2024-10-28 20:02:00 -04:00
Squidly271 fcec8111c3 Update docker.js 2024-10-28 19:38:24 -04:00
Christoph Hummer 9933affbbf Move TS icon to Network
- Move Tailscale information from `Version` to `Network` column
2024-10-28 22:07:33 +01:00
Christoph Hummer 145629d26e Update Helpers.php 2024-10-27 15:08:12 +01:00
Christoph Hummer 107ea81c48 Update CreateDocker.php 2024-10-27 15:07:35 +01:00
Christoph Hummer 525a750b75 Make check for Tailscale https more reliable 2024-10-25 21:58:25 +02:00
Christoph Hummer 52901e55be Fix php warning 2024-10-25 20:53:46 +02:00
Christoph Hummer 8b415fb4ae Update DockerClient.php
Improve if condition
2024-10-22 08:53:55 +02:00
Christoph Hummer 3e5fa408a6 Update DockerContainers.php
Fix logic error
2024-10-22 08:45:58 +02:00
Christoph Hummer 6c299eda87 Update CreateDocker.php 2024-10-22 08:31:49 +02:00
root e63b7af06d CreateDocker.php php error fix 2024-10-22 07:59:20 +02:00
Christoph Hummer d01196498b Fix php error 2024-10-22 06:21:01 +02:00
Christoph Hummer ba4555cdfd Fix for php error 2024-10-22 05:57:12 +02:00
Christoph Hummer 034f970b0c Update CreateDocker.php 2024-10-22 05:03:56 +02:00
Christoph Hummer 435b8be89e Remove old variable 2024-10-21 23:16:53 +02:00
Christoph Hummer 68910922f9 Fix variable 2024-10-21 23:13:23 +02:00
root e289d2ad7c Initial Tailscale Docker integration
- Remove exclusion from share directory from .gitignore
- Add Unraid specific container hook script
- Add Tailscale icon
- Add helptexts for Tailscale

This integration allows users to easily make use of Tailscale in their Docker containers by just clicking a switch on the Docker page.
The Tailscale plugin itself is not needed for this integration but for the best user experience it is strongly recommended to install the Tailscale plugin from Community Applications.

How this works:
1. Configure Tailscale in the Docker template in Unraid and click Apply
2. Unraid will extract the default Entrypoint and CMD from the container
3. The hook script will be mounted in the container to /opt/unraid/tailscale-hook and the Entrypoint from the container will be modified to /opt/unraid/tailscale-hook
4. The original Entrypoint and CMD from the container, alongside with the other necessary variables for Tailscale will be passed over to the container
5. When the container starts the hook script will be executed, install dependencies (currently Alpine, Arch and Debian based containers are supported), download the newest version from Tailscale and run it
6. After the first start with Tailscale the container will halt and wait for the user to click on the link which is presented in the log from the container to add the container to your Tailnet
(alternatively one could also open up a Console from the container and issue `tailscale status` which will also present the link to authenticate the container to your Tailnet)
7. The hook script will pass over the default Entrypoint and CMD which was extracted in step 2 and the container will start as usual

These steps will be repeated after Container update, force update from the Docker page and if changes in the template are made.
If the container is only Started/Restarted the hook script will detect that Tailscale is installed and only start it, if one wants to update Tailscale inside the container simply hit `force update` on the Docker page in Unraid (with Advanced View Enabled)

The integration will show a Tailscale icon on the Docker page for each Tailscale enabled Container and show some basic information from the container (Installed Tailscale Version, Online Status, Hostname, Main Relay, IPs, Exit Node, Auth Expiry,...)
When Serve or Funnel is enabled it will also generate `Tailscale WebUI` in the drop down for the container which you can open up if Tailscale is installed from the device you are accessing Unraid.
2024-10-21 23:07:11 +02:00
Tom Mortensen 59518d9672 Revert "fix: prevent deleting containers that are assigned as a network #1876" 2024-10-17 13:19:38 -07:00
SimonFair 80d567dfde killall and pgrep updates.
Set --ns $$ on commands.
2024-10-10 19:18:54 +01:00
Christoph Hummer 6f7b97e37a Fix for docker directory
- store path outside from function to not shorten path if users switches multiple times between `image` and `folder`
- make sure overlay2 is selected by default
2024-10-07 14:54:08 +02:00
tom mortensen fcbc8f700e Merge pull request #1876 from dkaser/check-container-networks
fix: prevent deleting containers that are assigned as a network
2024-10-01 14:00:08 -07:00
Derek Kaser 6fd88575b2 fix: prevent deleting containers that are assigned as a network 2024-10-01 04:21:51 +00:00
tom mortensen c3dd62f1d5 Merge pull request #1874 from dlandon/container_device_not_showing
Container device not showing in Dockerman.
2024-09-27 09:19:24 -07:00
dlandon 828cd7b747 Container device not showing in Dockerman. 2024-09-26 09:13:42 -05:00
Christoph Hummer 020ed9a07f Small fix for 3rd party containers
- Fix orange text "not available" to use the default text colour.
2024-09-23 21:19:04 +02:00
tom mortensen 9c9c79b1b3 Merge pull request #1857 from ich777/ich777-docker-container-network
Allow users to select Container networks in the WebUI
2024-09-16 14:55:54 -07:00
Christoph Hummer b62c8f5a12 Update Helpers.php 2024-09-09 17:09:15 +02:00