fanyp03 你测试的都是老镜像
# 当前目录下新建文件夹 shinobi 和子目录
mkdir -p shinobi/{config,customAutoLoad,database,plugins,videos}
# 新建临时文件存储文件系统
mkdir -p /dev/shm/Shinobi/streams
# 进入 shinobi 目录
cd shinobi
# 启动容器
docker run -d \
--name=shinobi \
--shm-size=2048m \
-p 8888:8080 \
-v $(pwd)/config:/config \
-v $(pwd)/customAutoLoad:/home/Shinobi/libs/customAutoLoad \
-v $(pwd)/database:/var/lib/mysql \
-v $(pwd)/plugins:/home/Shinobi/plugins \
-v $(pwd)/videos:/home/Shinobi/videos \
-v /etc/TZ:/etc/TZ:ro \
-v /etc/localtime:/etc/localtime:ro \
-v /dev/shm/Shinobi/streams:/dev/shm/streams \
registry.gitlab.com/shinobi-systems/shinobi:latest-arm32v7
成功拉取运行后,查看日志,里面会显示有默认用户名及密码
docker logs shinobi
Default Superuser : admin@shinobi.video
Default Password : admin
Log in at http://HOST_IP:SHINOBI_PORT/super
注意登录地址是 http://内网_IP:8888/super 路径
root@hi3798mv100:~# docker logs shinobi
MariaDB Directory ...
Installing MariaDB ...
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following command:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the MariaDB Knowledgebase at http://mariadb.com/kb
You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl
Please report any problems at http://mariadb.org/jira
The latest information about MariaDB is available at http://mariadb.org/.
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
Starting MariaDB ...
240820 21:18:31 mysqld_safe Logging to syslog.
240820 21:18:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Wait for MySQL server ...
mysqld is alive
Create database user if it does not exists ...
cpuUsageMarker: CPU
subscriptionId: sub_XXXXXXXXXXXX
thisIsDocker: true
pluginKeys: {}
databaseType: mysql
db: {"host": "localhost","user": "majesticflame","password": "","database": "ccio","port":3306}
ssl: {}
Changes Complete. Here is what it is now.
{
"port": 8080,
"debugLog": false,
"enableFaceManager": false,
"videosDir": "__DIR__/videos",
"passwordType": "sha256",
"detectorMergePamRegionTriggers": true,
"wallClockTimestampAsDefault": true,
"useBetterP2P": true,
"smtpServerOptions": {
"allowInsecureAuth": true
},
"addStorage": [
{
"name": "second",
"path": "__DIR__/videos2"
}
],
"db": {
"host": "localhost",
"user": "majesticflame",
"password": "",
"database": "ccio",
"port": 3306
},
"mail": {
"service": "gmail",
"auth": {
"user": "your_email@gmail.com",
"pass": "your_password_or_app_specific_password"
}
},
"cron": {},
"pluginKeys": {},
"cpuUsageMarker": "CPU",
"subscriptionId": "sub_XXXXXXXXXXXX",
"thisIsDocker": true,
"databaseType": "mysql",
"ssl": {}
}
=============
Default Superuser : admin@shinobi.video
Default Password : admin
Log in at http://HOST_IP:SHINOBI_PORT/super
Starting Shinobi ...
2024-08-20T13:18:42: PM2 log: Launching in no daemon mode
2024-08-20T13:18:43: PM2 log: App [camera:0] starting in -fork mode-
2024-08-20T13:18:43: PM2 log: App [camera:0] online
Available Hardware Acceleration Methods : vdpau, vaapi, drm
FFmpeg version : 4.1.11-0+deb10u1
Node.js version : v18.20.2
Shinobi : Web Server Listening on 8080
Creating Table "Logs"
Creating Table "Users"
Creating Table "API"
Creating Table "LoginTokens"
Creating Table "Files"
Creating Table "Videos"
Creating Table "Cloud Videos"
Creating Table "Events"
Creating Table "Events Counts"
Creating Table "Timelapse Frames"
Creating Table "Cloud Timelapse Frames"
Creating Table "Monitors"
Creating Table "Presets"
Creating Table "Schedules"
2024-08-20T13:19:30+00:00 Shinobi is ready.
2024-08-20T13:19:30+00:00 Current Version : 1fba3ffc8533bd6c21167dcce8dc29e4c79c1305
CRON.js LOG Tue Aug 20 2024 13:19:32 GMT+0000 (Coordinated Universal Time) Worker Processing!
2024-08-20T13:19:36+00:00 CRON.js MESSAGE : { f: 'start', time: Moment<2024-08-20T13:19:36+00:00> }
root@hi3798mv100:~# ^C