HiClaw开放容器内minio控制台可访问

HiClaw部署后容器部署情况如下:

(base) [root@stress-node3-124 hiclaw]# docker images
REPOSITORY                                                                  TAG                 IMAGE ID            CREATED             SIZE
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-hermes-worker   latest              679cc6ab29da        16 hours ago        1.61GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-copaw-worker    latest              458e5663de28        17 hours ago        1.83GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-worker          latest              f945d80771b2        17 hours ago        3.1GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-manager         latest              7ddd27274b5a        18 hours ago        3.1GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-embedded        latest              1c72278f307f        18 hours ago        2.45GB
ocr_service                                                                 3.0                 a69e3806ed7c        6 weeks ago         5.58GB
aimodel                                                                     py38                724580799988        8 months ago        2.05GB
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle                    3.0.0               a5d1b6184e99        13 months ago       5GB
(base) [root@stress-node3-124 hiclaw]# docker ps
CONTAINER ID        IMAGE                                                                         COMMAND                  CREATED             STATUS              PORTS                                                                                                     NAMES
ea2ec4f9e26f        higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-manager:latest    "/opt/hiclaw/scripts…"   6 minutes ago       Up 6 minutes        127.0.0.1:18888->18799/tcp                                                                                hiclaw-manager
4e8e0f096535        higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-embedded:latest   "supervisord -c /etc…"   6 minutes ago       Up 6 minutes        8090/tcp, 8443/tcp, 9001/tcp, 0.0.0.0:18001->8001/tcp, 0.0.0.0:18080->8080/tcp, 0.0.0.0:18088->8088/tcp   hiclaw-controller
ebe33e39ef87        ocr_service:3.0                                                               "/bin/bash"              6 weeks ago         Up 11 days          0.0.0.0:8089->8089/tcp, 22/tcp, 0.0.0.0:8091->8091/tcp                                                    seal_docker

需增加宿主机19001端口作为hiclaw-controller容器内9001端口(minio控制台)的映射,查询当前挂载信息,docker commit保存当前配置,

(base) [root@stress-node3-124 hiclaw]# docker inspect hiclaw-controller --format '{{json .Mounts}}' | python3 -m json.tool
[
    {
        "Type": "bind",
        "Source": "/var/run/docker.sock",
        "Destination": "/var/run/docker.sock",
        "Mode": "",
        "RW": true,
        "Propagation": "rprivate"
    },
    {
        "Type": "volume",
        "Name": "hiclaw-data",
        "Source": "/var/lib/docker/volumes/hiclaw-data/_data",
        "Destination": "/data",
        "Driver": "local",
        "Mode": "z",
        "RW": true,
        "Propagation": ""
    },
    {
        "Type": "bind",
        "Source": "/opt/hiclaw/hiclaw-manager",
        "Destination": "/root/hiclaw-fs/agents/manager",
        "Mode": "",
        "RW": true,
        "Propagation": "rprivate"
    }
]
(base) [root@stress-node3-124 hiclaw]#(base) [root@stress-node3-124 hiclaw]# docker commit hiclaw-controller hiclaw-embedded:custom
sha256:ce9c7e2d127094fa1369f03d30a0be51d7f68f643ba45aea6807e07771dbaeee
(base) [root@stress-node3-124 hiclaw]#
(base) [root@stress-node3-124 hiclaw]# docker images
REPOSITORY                                                                  TAG                 IMAGE ID            CREATED             SIZE
hiclaw-embedded                                                             custom              ce9c7e2d1270        10 seconds ago      2.47GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-hermes-worker   latest              679cc6ab29da        17 hours ago        1.61GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-copaw-worker    latest              458e5663de28        17 hours ago        1.83GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-worker          latest              f945d80771b2        17 hours ago        3.1GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-manager         latest              7ddd27274b5a        18 hours ago        3.1GB
higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/hiclaw-embedded        latest              1c72278f307f        18 hours ago        2.45GB
ocr_service                                                                 3.0                 a69e3806ed7c        6 weeks ago         5.58GB
aimodel                                                                     py38                724580799988        8 months ago        2.05GB
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle                    3.0.0               a5d1b6184e99        13 months ago       5GB

重启(Docker 使用默认的桥接网络模式)并验证

 

(base) [root@stress-node3-124 hiclaw]# docker stop hiclaw-controller && docker rm hiclaw-controller
hiclaw-controller
hiclaw-controller
(base) [root@stress-node3-124 hiclaw]# docker run -d \
>   --name hiclaw-controller \
>   --network hiclaw-net \
>   -p 18080:8080 \
>   -p 18001:8001 \
>   -p 18088:8088 \
>   -p 19001:9001 \
>   -v /var/run/docker.sock:/var/run/docker.sock \
>   -v hiclaw-data:/data \
>   -v /opt/hiclaw/hiclaw-manager:/root/hiclaw-fs/agents/manager \
>   hiclaw-embedded:custom
b71ced50577c9187695f722dc6525e0836a61fa36e3d490355a10b6a7cfbe469
(base) [root@stress-node3-124 hiclaw]# docker ps | grep hiclaw-controller
b71ced50577c        hiclaw-embedded:custom                                                       "supervisord -c /etc…"   9 seconds ago       Up 7 seconds        8090/tcp, 8443/tcp, 0.0.0.0:18001->8001/tcp, 0.0.0.0:18080->8080/tcp, 0.0.0.0:18088->8088/tcp, 0.0.0.0:19001->9001/tcp   hiclaw-controller
(base) [root@stress-node3-124 hiclaw]# docker port hiclaw-controller
8001/tcp -> 0.0.0.0:18001
8080/tcp -> 0.0.0.0:18080
8088/tcp -> 0.0.0.0:18088
9001/tcp -> 0.0.0.0:19001

 

posted @ 2026-04-27 18:19  雪山上的蒲公英  阅读(17)  评论(0)    收藏  举报
/* 返回顶部代码 */