Skip to content

在docker容器中 部署secretflow-allinone可行吗? #487

@sabakioukenasai

Description

@sabakioukenasai

Issue Type

Others

Search for existing issues similar to yours

Yes

Kuscia Version

kuscia v0.10.0b0

Link to Relevant Documentation

https://www.secretflow.org.cn/zh-CN/docs/secretpad-all-in-one/v1.8.0b0/p2p_deploy/platform_installation_guidelines

Question Details

应用场景:有一台公用的Ubuntu22.04服务器,每个用户在该服务器中拥有一个docker容器(也是Ubuntu系统),通过ssh连接上自己的docker容器,并且在各自的docker中进行开发工作。

我希望在我的docker中部署secretflow-allinone环境,于是从https://www.secretflow.org.cn/zh-CN/docs/secretpad-all-in-one/v1.11.0b0/history_download下载了secretflow-allinone-v1.8.0的x86_64安装包,然后上传到我的docker容器并解压。

当我依据文档采用P2P模式部署安装时,在运行install.sh时产生报错
> bash install.sh autonomy -n alice -s 8080 -g 40803 -k 40802 -p 10080 -q 13081 -P mtls
KUSCIA_IMAGE=secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/kuscia:0.10.0b0
SECRETFLOW_IMAGE=secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretflow-lite-anolis8:1.8.0b0
k3s data already exists /root/kuscia/root-kuscia-autonomy-alice/k3s...
Whether to retain k3s data?(y/n): yes
ROOT=/root/szzd-proj/allinone
DOMAIN_ID=alice
DOMAIN_HOST_PORT=10080
DOMAIN_HOST_INTERNAL_PORT=13081
DOMAIN_DATA_DIR=/root/kuscia/autonomy/data/alice
DOMAIN_LOG_DIR=/root/kuscia/autonomy/alice
KUSCIA_IMAGE=secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/kuscia:0.10.0b0
KUSCIAAPI_HTTP_PORT=40802
KUSCIAAPI_GRPC_PORT=40803
The container 'root-kuscia-autonomy-alice' already exists. Do you need to recreate it? [y/n]: yes
Remove container root-kuscia-autonomy-alice ...
root-kuscia-autonomy-alice
Starting container root-kuscia-autonomy-alice ...
root-kuscia-autonomy-alice-containerd
domain_hostname=root-kuscia-autonomy-alice-wwh
network=kuscia-exchange
442bcc84b5aa1daf00102619709ebe74b058b592228849b3e28fabe86821b0a3
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/szzd-proj/allinone/root-kuscia-autonomy-alice/kuscia.yaml" to rootfs at "/home/kuscia/etc/conf/kuscia.yaml": create mount destination for /home/kuscia/etc/conf/kuscia.yaml mount: cannot mkdir in /var/lib/docker/overlay2/5709cba50b20cfee9be0ee34af5c73a28a32d0b75c851dfba8d6a9ac5fd1d0b2/merged/home/kuscia/etc/conf/kuscia.yaml: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

我不清楚这个报错是不是和我在docker容器内部署secretflow-allinone有关系,因为有人告诉我在docker里面部署集群可能会出现问题。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions