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

关于启动失败的问题 #12

Closed
yuligesec opened this issue Mar 14, 2019 · 4 comments
Closed

关于启动失败的问题 #12

yuligesec opened this issue Mar 14, 2019 · 4 comments

Comments

@yuligesec
Copy link

git clone https://github.com/boy-hack/w12scan
cd w12scan
docker-compose up -d

根据以上命令部署时,docker启动的时候爆下面的错误

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.

将docker-compose.yml中的dockerversion改为2之后可以正常启动,但是访问访问为503.

@boy-hack
Copy link
Member

#9

@Hotsunrize
Copy link

刚刚部署上去,准备好好看看楼主的代码,学习一波py(ps:windows下部署docker有个小坑!)
部署需要4G的内存,不一定要在vps的服务器上,在本机(我的笔记本16G就足够了)就ok了---
不过遇到了一个问题w12scan_web启动失败

8dca7c4930be        w12scan_web                     "/opt/w12scan/docker…"   7 seconds ago       Exited (1) 5 seconds ago

看了下logs

`PS C:\Users\Administrator\PycharmProjects\w12scan> docker logs 8dca7c4930be
standard_init_linux.go:207: exec user process caused "no such file or directory"`

因为windows上git pull的代码,w12scan\dockerconf\start.sh的脚本格式是dos的,需要转换下,我是上传的linux服务器,用dos2unix转换的,转换完替换windows上的脚本,docker rmi之前构建的镜像,再一次运行docker-compose up就ok了

@Hotsunrize
Copy link

老哥有交流群吗,我能加下吗,进去学习:>

@SummerSec
Copy link

docker api怎么更新?求教

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants