-
Notifications
You must be signed in to change notification settings - Fork 208
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
创建docker容器报错 #12
Comments
谢谢orz |
一切正常 |
不好意思再问下,这个v2ray的容器怎么进入orz?就是我用docker exec -i 进容器报permission denied,不好意思,最近才上手docker_(:з」∠)_ |
那得看是谁 denied,试试 sudo dcoker |
哦对之后面跟的目录是/bin,应该是目录denied,不过用/bin/bash目录进容器是没有此目录no such file or directory |
sudo docker exec -ti name bash |
好像还是不行... |
这个是 Alpine 打包的,大概没有bash |
不好意思再问个问题,举例例子比如我v2ray config里面port是36363,然后v2ray和nginx都用docker两个容器启动。 |
不同模式下答案不同,你应该看文档。 |
这个:ro是啥情况?为什么需要挂read only?
docker bridge 下端口可以根据喜好自由映射, 比如对nginx做
后附个人的配置仅供参考: docker run \
-d \
--cap-add=NET_ADMIN \
--restart=always \
--network host \
-e V2RAY_LOCATION_CONFIG=/etc/v2ray \
-e V2RAY_LOCATION_ASSET=/etc/v2ray \
-e V2RAY_BUF_READV=enable \
-v $(path_to_config):/etc/v2ray \
-v $(path_to_logs):/var/log \
--name v2ray \
v2fly/v2fly-core |
好的,我明白了orz感谢,我再去试试hh |
感谢大佬们的解答,反馈一下 以下是我的docker-compose文件
v2ray的 config.json 用的是下面这个:
但是去掉了监听443的部分 |
目前创建的命令是这样
docker run --name v2ray -v /etc/v2ray/config.json:/etc/v2ray/config.json:ro v2fly/v2fly-core
日志返回是
020-09-28T16:37:36.708822233Z V2Ray v4.29.0 (v2fly/155c0e07) dockerfly-amd64 (go1.15.2 linux/amd64)
2020-09-28T16:37:36.708852121Z A unified platform for anti-censorship.
2020-09-28T16:37:36.818175991Z 2020/09/28 16:37:36 [Info] v2ray.com/core/common/platform/ctlcmd:
2020-09-28T16:37:36.818204735Z v2ctl> Read config: /etc/v2ray/config.json
2020-09-28T16:37:36.905166281Z 2020/09/28 16:37:36 [Warning] v2ray.com/core: V2Ray v4.29.0 started
就...没太看出来哪有问题。这个docker接入有具体的教程么orz果然是用docker搭的人太少了吗
The text was updated successfully, but these errors were encountered: