Comments (11)
有没有详细的 consul 日志?暂时从没出现过
from dockerfile.
@crankpin .....这个原因一般是链接被干扰了
from dockerfile.
@crankpin 走低位端口试试
from dockerfile.
@mritd
不好意思,不是很懂什么是'consul’日志?这个是vm上面的docker日志?还是container里面的ss的日志?
位置在哪里或者怎么打开?
或者,像楼上兄弟那样docker logs [container name]
谢谢!
from dockerfile.
@alexya 。。。额,回复你的时候正好在看 consul 文档......所以把 console 打成了 consul 😌
from dockerfile.
@mritd 我猜是console。
但我不知道你看什么的?ss-server运行的console日志么?貌似没有呢。
或者怎么让他显示出来?类似楼上的docker logs ss
?
我去试试。
[updated]
sudo docker logs c4179a4a2542
Kcptun not started......
Starting shadowsocks......
2018-01-03 15:23:44 INFO: using tcp fast open
sudo docker exec -it c4179a4a2542 /bin/bash
bash-4.4# ps aux
PID USER TIME COMMAND
1 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh
5 root 0:00 [ss-server]
6 root 0:00 /bin/bash
10 root 0:00 ps aux
And I attached my docker stack config:
version: '3'
services:
server:
image: mritd/shadowsocks
ports:
- "8388:8388"
- "6500:6500/udp"
environment:
SS_MODULE: "ss-server"
SS_CONFIG: "-s 0.0.0.0 -p 8388 -l 1080 -m aes-256-cfb -k barfoo! --fast-open"
KCP_FLAG: "false"
KCP_MODULE: "kcpserver"
KCP_CONFIG: "-t 127.0.0.1:8388 -l :6500 -mode fast2 --log /var/log/kcpserver.log"
furthermore, I tried to use docker run -dt ...
directly instead of docker stack, but got the same error. e.g.
bash-4.4# ps aux
PID USER TIME COMMAND
1 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh -m ss-server -s -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
5 root 0:00 kcpserver -t 127.0.0.1:8388 -l :6500 -mode fast2
6 root 0:00 ss-server -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
10 root 0:00 /bin/bash
15 root 0:00 ps aux
bash-4.4# ps aux
PID USER TIME COMMAND
1 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh -m ss-server -s -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
5 root 0:00 kcpserver -t 127.0.0.1:8388 -l :6500 -mode fast2
6 root 0:00 [ss-server]
10 root 0:00 /bin/bash
16 root 0:00 ps aux
from dockerfile.
@mritd It should be my virtual machine's issue.
I deleted it and re-created one, after running the container, I didn't find the issue.
from dockerfile.
刚好看到这里, @alexya 请问关于ss到客户端到health check,consul有什么解决办法吗
from dockerfile.
@ConserveLee 没懂你什么意思,ss 作为网络 tunnel 使用?
from dockerfile.
@ConserveLee 没懂你什么意思,ss 作为网络 tunnel 使用?
就是有多个ss-server的容器,consul可否检查哪个网络是连通的
@alexya
from dockerfile.
可以,请参考 https://www.consul.io/docs/agent/checks.html
from dockerfile.
Related Issues (20)
- win10下面如何使用kcptun? HOT 4
- 运行kcptun client 报错 HOT 5
- tar -zxf kcptun-linux-amd64-${KCP_VERSION}.tar.gz HOT 4
- add "apk del tzdata"
- ss的v2ray-plugin需要更新 HOT 1
- fastdfs启动脚本建议优化 HOT 4
- remove custom header 后又出现 failed to set TCP_FASTOPEN_CONNECT HOT 3
- sss HOT 1
- 希望提供一个更方便的privoxy,万分感谢 HOT 7
- The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested HOT 5
- shadowsocks2能否支持obfs HOT 2
- Timemachine afpd 权限问题
- Timemachine afpd 权限问题 HOT 4
- mritd/shadowsocks 的问题 HOT 4
- Please update shadowsocks-v2ray_plugin to 1.2.0 HOT 1
- 请问下,docker启动后报错 PC可用,手机不行 HOT 6
- 最近是不是q特别严重 HOT 2
- 使用 v2ray-plugin 开启 TLS 模式下,无法绑定 443 端口 HOT 4
- 作为客户端的情况下如何设置PAC自动或者全局? HOT 1
- 无法绑定到53端口 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile.