卸载老旧的版本
sudo apt-get remove docker docker-engine docker.io
安装最新的docker:
$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
或者
$ curl -sSL https://get.docker.com/ | sh
确认Docker成功最新的docker
$ sudo docker run hello-world
安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
或者下边的加速
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.17.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
测试安装结果
$ docker-compose --version
docker-compose version 1.16.1, build 1719ceb
pip安装
sudo pip install docker-compose
先安装docker和docker compose
修改dock镜像为国内地址
vi /etc/docker/daemon.json 文件,修改为如下形式
{
"registry-mirrors":[
"https://ung2thfc.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
git clone https://gitee.com/open-visual/face-search.git
cd /home/li/face-search/scripts
使用下边命令 启动docker
docker-compose -f docker-compose-opensearch.yml --compatibility up -d
修改docker-compose-opensearch.yml
把mysl 3306和9200端口注释去掉
修改权限 docker-compose-opensearch.yml所在目录
chmod 777 volumes-face-search/opensearch/data
重启服务
docker-compose -f docker-compose-opensearch.yml --compatibility up -d
查看日志
docker logs -f --tail=100 face-search-server-standalone
http://192.168.1.43:56789/doc.html#/home
http://192.168.1.43:5601/app/login?