我正在使用以下 docker 命令运行 GoPhish:
docker run -v $PWD/:/opt/gophish/db -p 3333:3333 -p 80:80 gophish/gophish
但得到以下错误:
time="2021-03-22T22:01:24Z" level=error msg="no valid version found"
time="2021-03-22T22:01:24Z" level=fatal msg="no valid version found"
详细日志:
Runtime configuration:
{
"admin_server": {
"listen_url": "0.0.0.0:3333",
"use_tls": true,
"cert_path": "gophish_admin.crt",
"key_path": "gophish_admin.key"
},
"phish_server": {
"listen_url": "0.0.0.0:80",
"use_tls": false,
"cert_path": "example.crt",
"key_path": "example.key"
},
"db_name": "sqlite3",
"db_path": "gophish.db",
"migrations_prefix": "db/db_",
"contact_address": "",
"logging": {
"filename": "",
"level": ""
}
}
time="2021-03-22T22:01:24Z" level=warning msg="No contact address has been configured."
time="2021-03-22T22:01:24Z" level=warning msg="Please consider adding a contact_address entry in your config.json"
time="2021-03-22T22:01:24Z" level=error msg="no valid version found"
time="2021-03-22T22:01:24Z" level=fatal msg="no valid version found"
我正在使用来自 Docker 中心的官方 GoPhish 图像,没有改变任何东西。
当我跑docker run -v $PWD/:/opt/gophish -p 3333:3333 -p 80:80 gophish/gophish
它在容器本身未启动的情况下给出其他错误:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "./docker/run.sh": stat ./docker/run.sh: no such file or directory: unknown.
不知道我做错了什么,请帮忙