主要是根据官方文档来安装,记录下遇到的主要问题以及解决方法。
docker-compose up -d --remove-orphans (增加--remove-orphans是因为以前安装过cvat,此次是更新,所有加了此选项)
docker pull拉取镜像时提示错误:
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host
解决方法:sudo vim /etc/resolv.conf
增加一行:nameserver 8.8.8.8
ERROR: error parsing HTTP 408 response body: invalid character '<' looking for beginning of value: "
解决方法:
Add registry mirrors into daemon.json file:
sudo vim /etc/docker/daemon.json
add content
"registry-mirrors": [
"http://f1361db2.m.daocloud.io",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://https://mirror.ccs.tencentyun.com",
"https://mirror.ccs.tencentyun.com",
]
3.建议如果有docker,卸载docker,重新安装最新版本。否则会有一些奇怪的问题。
a. 删掉旧的docker, 并不会删掉镜像
sudo apt-get purge docker*
b. 删掉docker配置
sudo apt-get remove docker docker-engine docker.io containerd runc
c. 安装docker,总遇到网络问题,解决方案见如下网址
https://blog.csdn.net/shipfei_csdn/article/details/122730226
按github上cvat的指导安装docker,出现问题,
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方案
https://blog.csdn.net/qq_41094332/article/details/104174534
d. docker总是启动失败
django@django-07:~/2023-cvat/cvat-develop$ docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.10.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.16.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
scan: Docker Scan (Docker Inc.)
Version: v0.23.0
Path: /usr/libexec/docker/cli-plugins/docker-scan
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
解决办法:讲/etc/docker/daemon.json恢复原样
然后启动docker服务
systemctl daemon-reload
service docker start
4.docker compose up -d
cvat_db启动失败
django.db.utils.OperationalError: could not connect to server: No route to host
Is the server running on host "cvat_db" (172.18.0.2) and accepting
TCP/IP connections on port 5432?
解决办法:systemctl restart docker.service (重新启动docker服务)
5. docker info
WARNING: bridge-nf-call-iptables is disabled
https://blog.csdn.net/qq_37312316/article/details/110308456
6. 最后安装完成后在网页访问cvat,总是弹出server error. 主要原因是硬盘使用率超过90%。将硬盘里的东西删除一些后,cvat可以访问。
7. 修改共享目录的配置,按说明修改共享目录后(修改device),如果mount总是按旧的目录mount,需要重启下电脑,才会按新配置的目录mount。
8.cvat不能导出数据。解决办法,在配置文件中增加: