使用在线安装报错

使用在线安装,命令:curl -sSL https://resource.fit2cloud.com/jumpserver/jumpserver/releases/latest/download/quick_start.sh | bash

执行结果:

Install and Configure Docker

  1. Install Docker
    complete

  2. Configure Docker
    complete

  3. Start Docker
    complete

Loading Docker Image
[jumpserver/chen:v3.10.10] exist, pass
[jumpserver/lion:v3.10.10] exist, pass
[jumpserver/magnus:v3.10.10] exist, pass
[jumpserver/kael:v3.10.10] exist, pass
[jumpserver/core-ce:v3.10.10] exist, pass
[jumpserver/mariadb:10.6] exist, pass
[jumpserver/web:v3.10.10] exist, pass
[jumpserver/koko:v3.10.10] exist, pass
[jumpserver/redis:6.2] exist, pass
complete

Install and Configure JumpServer

  1. Configure Private Key
    complete

  2. Configure Persistent Directory
    Do you need custom persistent store, will use the default directory /data/jumpserver? (y/n) (default n): complete

  3. Configure MySQL
    Do you want to use external MySQL? (y/n) (default n): complete

  4. Configure Redis
    Do you want to use external Redis? (y/n) (default n): complete

  5. Configure External Access
    Do you need to customize the JumpServer external port? (y/n) (default n): complete

  6. Init JumpServer Database
    ERROR: Invalid interpolation format for “core” option in service “services”: “${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}”
    ERROR: The Compose file ‘./compose/docker-compose-network.yml’ is invalid because:
    networks.net contains an invalid type, it should be a string

操作系统信息:[root@hcss-ecs-daa2 jumpserver]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
docker版本:[root@hcss-ecs-daa2 jumpserver]# docker -v
Docker version 26.0.1, build d260a54

镜像信息:[root@hcss-ecs-daa2 jumpserver]# docker images|grep jump
jumpserver/web v3.10.10 ee9fd77ab1f3 4 weeks ago 1.53GB
jumpserver/core-ce v3.10.10 f08a0159995d 4 weeks ago 1.64GB
jumpserver/magnus v3.10.10 7183292c9d32 4 weeks ago 147MB
jumpserver/chen v3.10.10 cd40520e06f2 4 weeks ago 572MB
jumpserver/koko v3.10.10 4c9887be0ad9 4 weeks ago 1.06GB
jumpserver/lion v3.10.10 4b64744a63d7 4 weeks ago 255MB
jumpserver/kael v3.10.10 7246b9a01816 4 weeks ago 269MB
jumpserver/mariadb 10.6 9ee9424356c4 5 months ago 392MB
jumpserver/redis 6.2 c6b27afb23d5 5 months ago 113MB

请问关于:6. Init JumpServer Database
ERROR: Invalid interpolation format for “core” option in service “services”: “${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}”
ERROR: The Compose file ‘./compose/docker-compose-network.yml’ is invalid because:
networks.net contains an invalid type, it should be a string
报错如何解决?谢谢。

docker-compose自己装的吗

docker 26版本内自带docker compose命令

docker-compose -v 具体版本号看一下

[root@hcss-ecs-daa2 ~]# docker-compose -v
docker-compose version 1.18.0, build 8dd22a9

升级到版本2以上,实测Docker Compose version v2.27.0有效