Skip to content

Commit 94dbf18

Browse files
lanthoralanthora
authored andcommitted
修改 dockerfile 默认命令
1 parent 96b5123 commit 94dbf18

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Please ensure that the server and the client are synchronized within 30 seconds,
1111
You will be able to join our virtual private network with a single command.
1212

1313
```bash
14-
docker run --device /dev/net/tun --cap-add NET_ADMIN --net=host lanthora/candy -m client -w wss://zone.icandy.one/demo
14+
docker run --rm --privileged=true --net=host --device /dev/net/tun --volume /var/lib/candy:/var/lib/candy lanthora/candy
1515
```
1616

1717
Setting up your own virtual private network is easy. For instructions, please see the help document.
1818

1919
```bash
20-
docker run lanthora/candy --help
20+
docker run --rm lanthora/candy --help
2121
```
2222

2323
We also invite you to join our [Telegram Group](https://t.me/+xR4K-Asvjz0zMjU1) and share your feedback with us.

compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
build:
55
context: ./
66
dockerfile: dockerfile
7-
command: -m client -w wss://zone.icandy.one/demo
87
network_mode: host
98
privileged: true
109
devices:

daemonset.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ spec:
1515
containers:
1616
- name: candy-demo
1717
image: lanthora/candy:latest
18-
command: ["candy", "-m", "client", "-w", "wss://zone.icandy.one/demo"]
1918
securityContext:
2019
privileged: true
2120
volumeMounts:

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ RUN cd candy/build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Relea
1010
FROM base as production
1111
COPY --from=builder /usr/bin/candy /usr/bin/candy
1212
ENTRYPOINT ["/usr/bin/candy"]
13-
CMD ["-c", "/etc/candy.conf"]
13+
CMD ["-m", "client", "-w", "wss://zone.icandy.one/demo"]

0 commit comments

Comments
 (0)