离线docker导入Qanything问题
离线docker导入Qanything问题
https://github.com/netease-youdao/QAnything
qanything-v2 推送版本中官方文档错误的地方
'''
Download the docker image on a networked machine
docker pull quay.io/coreos/etcd:v3.5.5 docker pull minio/minio:RELEASE.2023-03-20T20-16-18Z docker pull milvusdb/milvus:v2.4.8 docker pull mysql:8.4 docker pull xixihahaliu01/qanything-win:v1.5.1 # From [https://github.com/netease-youdao/QAnything/blob/master/docker-compose-windows.yaml#L103] Get the latest version number.
pack image
docker save quay.io/coreos/etcd:v3.5.5 minio/minio:RELEASE.2023-03-20T20-16-18Z milvusdb/milvus:v2.4.8 mysql:8.4 xixihahaliu01/qanything-win:v1.5.1 -o qanything_offline.tar
download QAnything code
wget https://github.com/netease-youdao/QAnything/archive/refs/heads/master.zip
Copy the image qanything_offline.tar and the code qany-master.zip to the offline machine
cp QAnything-master.zip qanything_offline.tar /path/to/your/offline/machine
Load image on offline machine
docker load -i qanything_offline.tar
Unzip the code and run it
unzip QAnything-master.zip cd QAnything-master docker compose -f docker-compose-win.yaml up '''
错误处:
1.Download the docker image on a networked machine 时 少了
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.13.2
2. download QAnything code 时 下载错了,应该是
wget https://github.com/netease-youdao/QAnything/archive/refs/heads/qanything-v2.zip
QAnything-qanything-v2 改成如下 '''
Download the docker image on a networked machine
docker pull quay.io/coreos/etcd:v3.5.5 docker pull minio/minio:RELEASE.2023-03-20T20-16-18Z docker pull milvusdb/milvus:v2.4.8 docker pull mysql:8.4 docker pull xixihahaliu01/qanything-win:v1.5.1 # From [https://github.com/netease-youdao/QAnything/blob/master/docker-compose-windows.yaml#L103] Get the latest version number. docker pull docker.elastic.co/elasticsearch/elasticsearch:8.13.2
pack image
docker save quay.io/coreos/etcd:v3.5.5 minio/minio:RELEASE.2023-03-20T20-16-18Z milvusdb/milvus:v2.4.8 mysql:8.4 xixihahaliu01/qanything-win:v1.5.1 docker.elastic.co/elasticsearch/elasticsearch:8.13.2 -o qanything_offline.tar
download QAnything code
wget wget https://github.com/netease-youdao/QAnything/archive/refs/heads/qanything-v2.zip
Copy the image qanything_offline.tar and the code qany-master.zip to the offline machine
cp QAnything-qanything-v2.zip qanything_offline.tar /path/to/your/offline/machine
Load image on offline machine
docker load -i qanything_offline.tar
Unzip the code and run it
unzip QAnything-qanything-v2.zip cd QAnything-qanything-v2 docker compose -f docker-compose-win.yaml up '''
最后在本地端口上就能正常使用 localhost:8777/qanything/ 注意最后面这个/
Source: netease-youdao/QAnything