docker部署的最新版本容器被删除后如何重新跑起来

因为docker某次错误操作,导致容器被删除(数据与配置文件还在),现在重新新建容器,会提示数据库连接不上,查看数据库日志提示

 docker logs 062
2024-02-29 03:54:44+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.17+maria~ubu2004 started.
2024-02-29 03:54:44+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-02-29 03:54:44+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.17+maria~ubu2004 started.
2024-02-29 03:54:44+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
2024-02-29  3:54:44 0 [Note] Starting MariaDB 10.6.17-MariaDB-1:10.6.17+maria~ubu2004 source revision 15c75ad083a55e198ae78324f22970694b72f22b as process 1
2024-02-29  3:54:44 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-29  3:54:44 0 [Note] InnoDB: Number of pools: 1
2024-02-29  3:54:44 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-29  3:54:44 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-29  3:54:44 0 [Note] InnoDB: Using Linux native AIO
2024-02-29  3:54:44 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-29  3:54:44 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-29  3:54:45 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-29  3:54:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-29  3:54:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-29  3:54:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-29  3:54:45 0 [Note] InnoDB: 10.6.17 started; log sequence number 1273244; transaction id 2359
2024-02-29  3:54:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-29  3:54:45 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-02-29  3:54:45 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-02-29  3:54:45 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-02-29  3:54:45 0 [Note] Server socket created on IP: '::'.
2024-02-29  3:54:45 0 [Note] mariadbd: ready for connections.
Version: '10.6.17-MariaDB-1:10.6.17+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-02-29  3:54:45 0 [Note] InnoDB: Buffer pool(s) load completed at 240229  3:54:45
2024-02-29  3:54:57 3 [Warning] Access denied for user 'seafile'@'172.19.0.4' (using password: YES)
2024-02-29  3:54:59 4 [Warning] Access denied for user 'seafile'@'172.19.0.4' (using password: YES)
2024-02-29  3:55:01 5 [Warning] Access denied for user 'seafile'@'172.19.0.4' (using password: YES)
2024-02-29  3:55:03 6 [Warning] Access denied for user 'seafile'@'172.19.0.4' (using password: YES)

现在想要恢复其中一个库的资料,有什么办法?

密码不对或者dbhost不对 看看密码是否正确