Skip to content

Commit

Permalink
Update tailscale command
Browse files Browse the repository at this point in the history
  • Loading branch information
altermarkive authored Sep 6, 2023
1 parent d71a504 commit 2705623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/tailscale-as-sidecar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ To run the Tailscale daemon as a "sidecar" on Kubernetes start reading [here](ht
To run the Tailscale daemon as a "sidecar" to the services bound to the Docker host run the following command:

```bash
docker run -d --name tailscaled --hostname $HOSTNAME -e TAILSCALE_AUTH_KEY=$TAILSCALE_AUTH_KEY -v $HOME/.tailscale:/var/lib/tailscale --device /dev/net/tun --network host --cap-add=NET_ADMIN --restart unless-stopped --entrypoint /bin/sh -e TAILSCALE_AUTH_KEY=$TAILSCALE_AUTH_KEY tailscale/tailscale:latest -c '(([ ! -f "/var/lib/tailscale/tailscaled.state" ] && ( sleep 3; /usr/local/bin/tailscale up --authkey=$TAILSCALE_AUTH_KEY)) &); /usr/local/bin/tailscaled'
docker run -d --name tailscaled --hostname $HOSTNAME -e TS_AUTHKEY=$TS_AUTHKEY -v /var/lib:/var/lib -v /dev/net/tun:/dev/net/tun --network host --cap-add=NET_ADMIN --cap-add=NET_RAW --restart unless-stopped tailscale/tailscale
```

0 comments on commit 2705623

Please sign in to comment.