原版本v3.10.7,升级V4.0.0的时候,无论是在线升级还是离线升级,提示以下错误。

  1. Backup database
    Backing up…
    mysqldump: [Warning] Using a password on the command line interface can be insecure.
    [SUCCESS] Backup succeeded! The backup file has been saved to: /opt/jumpserver/db_backup/jumpserver-v3.10.7-2024-07-16_15:57:22.sql

  2. Backup Configuration File
    Back up to /opt/jumpserver/db_backup/config-v3.10.7-2024-07-16_15:57:27.conf

  3. Apply database changes
    Changing database schema may take a while, please wait patiently
    Detected that the JumpServer container is running. Do you want to close the container and continue to upgrade? (y/n) (default y): y

unknown shorthand flag: ‘f’ in -f
See ‘docker --help’.

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
–config string Location of client config files (default “/root/.docker”)
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level (“debug”|“info”|“warn”|“error”|“fatal”) (default “info”)
–tls Use TLS; implied by --tlsverify
–tlscacert string Trust certs signed only by this CA (default “/root/.docker/ca.pem”)
–tlscert string Path to TLS certificate file (default “/root/.docker/cert.pem”)
–tlskey string Path to TLS key file (default “/root/.docker/key.pem”)
–tlsverify Use TLS and verify the remote
-v, --version Print version information and quit

docker和compose版本多少

升个级再试试

要先升级到v3.10.11以上的版本才能升级v4

需要升级到v3最新版

升级V3.10.12最新版本了,还是不行,出现同样错误

docker和docker-compose版本多少