root@DESKTOP-UDK350B:~# sudo docker run hello-world
Hello from Docker!This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID: https://hub.docker.com/For more examples and ideas, visit: https://docs.docker.com/get-started/
bug network milvus was found but has incorrect label com.docker.compose.network set to “milvus”
利用docker network ls列出全部网络,然后你会找到一个名为milvus的网络,利用docker network rm milvus删除milvus网络。再次运行docker compose up就可以了。
docker network ls
docker network rm milvus
复制代码
用以下命令检查容器是否启动并运行:
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
milvus-etcd quay.io/coreos/etcd:v3.5.5 "etcd -advertise-cli…" etcd 26 seconds ago Up 25 seconds (health: starting) 2379-2380/tcp
milvus-minio minio/minio:RELEASE.2023-03-20T20-16-18Z "/usr/bin/docker-ent…" minio 26 seconds ago Up 25 seconds (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp
milvus-standalone milvusdb/milvus:v2.4.5 "/tini -- milvus run…" standalone 26 seconds ago Up 25 seconds (health: starting) 0.0.0.0:9091->9091/tcp, :::9091->9091/tcp, 0.0.0.0:19530->19530/tcp, :::19530->19530/tcp
提示:如果您的系统安装了Docker Compose V2而不是V1,请利用Docker Compose而不是Docker - Compose。检查 docker compose version是否是这种环境。点击这里了解更多信息。
2.2.1.docker-compose: command not found 解决办法
运行 docker-compose up -d 命令的时候出现命令没找到的报错
# docker-compose up -d
-bash: docker-compose: command not found
复制代码
解决办法:
安装 pip
# yum -y install epel-release
# yum -y install python-pip
复制代码
升级 pip
# pip install --upgrade pip
复制代码
安装 docker-compose 插件
# pip install docker-compose
apt install docker-compose
复制代码
验证是否安装成功
# docker-compose -version
docker-compose version 1.29.2, build unknown
复制代码
5.安装docker 版本要求是6.1.3 别安装7.0.0会报错的
File “/root/anaconda3/envs/paddlenlp_2.6.0_test/lib/python3.8/site-packages/compose/cli/docker_client.py”, line 124, in docker_client
kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)
TypeError: kwargs_from_env() got an unexpected keyword argument ‘ssl_version’
pip install docker==6.1.3
复制代码
2.2.2 docker-compose下载卡住
初次利用其安装环境,卡住下载, 多次重复命令都卡在相同位置。最后周转之下找到解决办法,重启解决99%的问题
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))
ERROR: for milvus-etcd Cannot create container for service etcd: Conflict. The container name “/milvus-etcd” is already in use by container "9e9b06701bebc9f2ddf2a3909983abd964e53010cd197a96457f00c5d37a675dCreating milvus-minio … error
schema = CollectionSchema(fields, "hello_milvus is the simplest demo to introduce the APIs"):
根据刚刚定义的魔术球属性(fields),我们制作一个魔术球袋子的模板。
同时,我们给这个模板加上一段描述:“hello_milvus is the simplest demo to introduce the APIs”。