You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download the `.zip` file for your architecture from the [releases page](https://github.com/zignd/hoster/releases), extract it, and place the executable in your preferred location or add it to your PATH.
62
+
63
+
**Check the installed version:**
64
+
65
+
```bash
66
+
hoster --version
67
+
```
68
+
69
+
### Option 2: Build from Source
70
+
71
+
Requires Go 1.16 or higher.
30
72
31
73
```bash
32
74
git clone <repository-url>
@@ -42,27 +84,36 @@ go build -o hoster main.go
42
84
Run with default settings (requires root):
43
85
44
86
```bash
45
-
sudo ./hoster
87
+
sudo hoster
46
88
```
47
89
90
+
**Note:** If you haven't moved the binary to a directory in your PATH, use `./hoster` instead when running from the current directory.
91
+
48
92
### Command Line Options
49
93
50
94
View all available options:
51
95
52
96
```bash
53
-
./hoster --help
97
+
hoster --help
98
+
```
99
+
100
+
Check the version:
101
+
102
+
```bash
103
+
hoster --version
54
104
```
55
105
56
106
Available flags:
57
107
58
-
-`--help` - Display help message and exit
108
+
-`--help` - Show help message with usage examples and exit
109
+
-`--version` - Display version information and exit
59
110
-`--hosts <path>` - Path to the hosts file (default: `/etc/hosts`)
60
111
-`--socket <path>` - Path to the Docker socket (default: `/var/run/docker.sock`)
0 commit comments