Docker:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第314行: 第314行:
查看容器启动日志。
查看容器启动日志。
{{Shc_out|<syntaxhighlight lang="bash">
{{Shc_out|<syntaxhighlight lang="bash">
sudo docker logs 8edadee2b3f8</syntaxhighlight>|<syntaxhighlight lang="bash">
2022-04-12 11:17:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.28-1debian10 started.
2022-04-12 10:53:59+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.28-1debian10 started.
2022-04-12 11:17:55+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-04-12 10:53:59+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-04-12 11:17:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.28-1debian10 started.
2022-04-12 10:53:59+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.28-1debian10 started.
2022-04-12 11:17:55+00:00 [Note] [Entrypoint]: Initializing database files
2022-04-12 10:53:59+00:00 [Note] [Entrypoint]: Initializing database files
2022-04-12T11:17:55.534138Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2022-04-12T10:53:59.297045Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2022-04-12T11:17:55.534234Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2022-04-12T10:53:59.297139Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.28) initializing of server in progress as process 41
2022-04-12T11:17:55.534250Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.28) initializing of server in progress as process 41
2022-04-12T10:53:59.299423Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
2022-04-12T11:17:55.548592Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-04-12T10:53:59.299477Z 0 [ERROR] [MY-013236] [Server] The designated data directory /usr/mysql/data/ is unusable. You can remove all files that the server added to it.
2022-04-12T11:17:56.758459Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-04-12T10:53:59.299488Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-04-12T11:17:59.081271Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2022-04-12T10:53:59.299628Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.28) MySQL Community Server - GPL.
2022-04-12 11:18:03+00:00 [Note] [Entrypoint]: Database files initialized
2022-04-12 11:18:03+00:00 [Note] [Entrypoint]: Starting temporary server
mysqld will log errors to /opt/datas/docker/mysql/data/4a0c074b7272.err
mysqld is running as pid 90
2022-04-12 11:18:04+00:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
 
2022-04-12 11:18:06+00:00 [Note] [Entrypoint]: Stopping temporary server
2022-04-12 11:18:08+00:00 [Note] [Entrypoint]: Temporary server stopped
 
2022-04-12 11:18:08+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
 
2022-04-12T11:18:09.290345Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2022-04-12T11:18:09.290508Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2022-04-12T11:18:09.290561Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28) starting as process 1
2022-04-12T11:18:09.303870Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-04-12T11:18:09.579432Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-04-12T11:18:09.831051Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-04-12T11:18:09.831094Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2022-04-12T11:18:09.861635Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2022-04-12T11:18:09.861684Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.28'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306 MySQL Community Server - GPL.
</syntaxhighlight>|$|/home/kangkk}}
</syntaxhighlight>|$|/home/kangkk}}