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

Add -it to docker exec #2148

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/running-headscale-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ not work with alternatives like [Podman](https://podman.io). The Docker image ca
1. Create a user ([tailnet](https://tailscale.com/kb/1136/tailnet/)):

```shell
docker exec headscale \
docker exec -it headscale \
headscale users create myfirstuser
```

Expand All @@ -116,7 +116,7 @@ tailscale up --login-server YOUR_HEADSCALE_URL
To register a machine when running `headscale` in a container, take the headscale command and pass it to the container:

```shell
docker exec headscale \
docker exec -it headscale \
headscale nodes register --user myfirstuser --key <YOUR_MACHINE_KEY>
```

Expand All @@ -125,7 +125,7 @@ docker exec headscale \
Generate a key using the command line:

```shell
docker exec headscale \
docker exec -it headscale \
headscale preauthkeys create --user myfirstuser --reusable --expiration 24h
```

Expand Down Expand Up @@ -161,4 +161,4 @@ You can also execute commands directly, such as `ls /ko-app` in this example:
docker run headscale/headscale:x.x.x-debug ls /ko-app
```

Using `docker exec` allows you to run commands in an existing container.
Using `docker exec -it` allows you to run commands in an existing container.
Loading