启动Docker Toolbox
(由于无法在idea中使用docker desktop)所以,此处选择使用docker Toolbox
在这里插入图片描述
打开Settings设置界面
在这里插入图片描述
选择Build Exection Deployment=>Docker
点击+号,创建一个Docker连接,指定Docker Machine为default,默认的虚拟机。
点击右下角的Apply
在这里插入图片描述
底部出现Docker工具栏
在这里插入图片描述
在Images右键Pull Image拉取镜像
在这里插入图片描述
在Repository中输入指定的镜像名,比如httpd,mysql,nginx等名称。
latest是Tag中是最新的Tag版本。
在这里插入图片描述
在这里插入图片描述
等待拉取
在这里插入图片描述
拉取成功之后,右键Create container
在这里插入图片描述
选择Create
在这里插入图片描述

设置端口映射
在这里插入图片描述
由于此处选择了mysql,所以要设置mysql的密码。
在这里插入图片描述
部署容器,可以看到Deploy log
在这里插入图片描述
Deploy log

2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Initializing database files
2019-11-11T07:51:08.909705Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T07:51:09.097858Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-11-11T07:51:09.127239Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-11-11T07:51:09.184120Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 05f5ac40-0458-11ea-8850-0242ac110003.
2019-11-11T07:51:09.185229Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2019-11-11T07:51:10.330922Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:10.589860Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Database files initialized
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Starting temporary server
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Waiting for server startup
2019-11-11T07:51:12.933678Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T07:51:12.936883Z 0 [Note] mysqld (mysqld 5.7.28) starting as process 78 ...
2019-11-11T07:51:12.942807Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-11T07:51:12.943359Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-11T07:51:12.943901Z 0 [Note] InnoDB: Uses event mutexes
2019-11-11T07:51:12.943987Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-11-11T07:51:12.944047Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-11T07:51:12.944106Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-11T07:51:12.945280Z 0 [Note] InnoDB: Number of pools: 1
2019-11-11T07:51:12.949775Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-11T07:51:12.953688Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-11T07:51:12.969532Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-11T07:51:12.974490Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-11T07:51:12.990591Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-11T07:51:13.003529Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-11T07:51:13.004382Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-11T07:51:13.027368Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-11-11T07:51:13.029315Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-11-11T07:51:13.030398Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-11-11T07:51:13.031377Z 0 [Note] InnoDB: Waiting for purge to start
2019-11-11T07:51:13.081712Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 2628227
2019-11-11T07:51:13.082782Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-11-11T07:51:13.090557Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2019-11-11T07:51:13.091139Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2019-11-11T07:51:13.092542Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:13.094168Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:13.095511Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2019-11-11T07:51:13.097273Z 0 [Note] InnoDB: Buffer pool(s) load completed at 191111  7:51:13
2019-11-11T07:51:13.100645Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2019-11-11T07:51:13.123759Z 0 [Note] Event Scheduler: Loaded 0 events
2019-11-11T07:51:13.124845Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2019-11-11 07:51:13+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.

2019-11-11 07:51:15+00:00 [Note] [Entrypoint]: Stopping temporary server
2019-11-11T07:51:15.604207Z 0 [Note] Giving 0 client threads a chance to die gracefully
2019-11-11T07:51:15.605263Z 0 [Note] Shutting down slave threads
2019-11-11T07:51:15.605802Z 0 [Note] Forcefully disconnecting 0 remaining clients
2019-11-11T07:51:15.605882Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-11-11T07:51:15.606002Z 0 [Note] Binlog end
2019-11-11T07:51:15.607806Z 0 [Note] Shutting down plugin 'ngram'
2019-11-11T07:51:15.608395Z 0 [Note] Shutting down plugin 'partition'
2019-11-11T07:51:15.608465Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2019-11-11T07:51:15.609059Z 0 [Note] Shutting down plugin 'ARCHIVE'
2019-11-11T07:51:15.609191Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2019-11-11T07:51:15.609277Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2019-11-11T07:51:15.609322Z 0 [Note] Shutting down plugin 'MyISAM'
2019-11-11T07:51:15.609373Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2019-11-11T07:51:15.609416Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2019-11-11T07:51:15.609456Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2019-11-11T07:51:15.609494Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2019-11-11T07:51:15.609534Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2019-11-11T07:51:15.609573Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2019-11-11T07:51:15.609614Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2019-11-11T07:51:15.609670Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2019-11-11T07:51:15.609714Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2019-11-11T07:51:15.609762Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2019-11-11T07:51:15.609815Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2019-11-11T07:51:15.609868Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2019-11-11T07:51:15.609919Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2019-11-11T07:51:15.609971Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2019-11-11T07:51:15.615531Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2019-11-11T07:51:15.617076Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2019-11-11T07:51:15.617140Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2019-11-11T07:51:15.617186Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2019-11-11T07:51:15.617229Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2019-11-11T07:51:15.617271Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2019-11-11T07:51:15.617313Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2019-11-11T07:51:15.617355Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2019-11-11T07:51:15.617396Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2019-11-11T07:51:15.617914Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2019-11-11T07:51:15.620273Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2019-11-11T07:51:15.621961Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2019-11-11T07:51:15.622677Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2019-11-11T07:51:15.623574Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2019-11-11T07:51:15.624223Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2019-11-11T07:51:15.624315Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2019-11-11T07:51:15.624362Z 0 [Note] Shutting down plugin 'InnoDB'
2019-11-11T07:51:15.626477Z 0 [Note] InnoDB: FTS optimize thread exiting.
2019-11-11T07:51:15.626931Z 0 [Note] InnoDB: Starting shutdown...
2019-11-11T07:51:15.727595Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:15.728625Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 191111  7:51:15
2019-11-11T07:51:16.941374Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12440100
2019-11-11T07:51:16.943525Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-11-11T07:51:16.943923Z 0 [Note] Shutting down plugin 'MEMORY'
2019-11-11T07:51:16.943977Z 0 [Note] Shutting down plugin 'CSV'
2019-11-11T07:51:16.944010Z 0 [Note] Shutting down plugin 'sha256_password'
2019-11-11T07:51:16.944040Z 0 [Note] Shutting down plugin 'mysql_native_password'
2019-11-11T07:51:16.944161Z 0 [Note] Shutting down plugin 'binlog'
2019-11-11T07:51:16.945995Z 0 [Note] mysqld: Shutdown complete

2019-11-11 07:51:17+00:00 [Note] [Entrypoint]: Temporary server stopped

2019-11-11 07:51:17+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2019-11-11T07:51:17.822461Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T07:51:17.823566Z 0 [Note] mysqld (mysqld 5.7.28) starting as process 1 ...
2019-11-11T07:51:17.828174Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-11T07:51:17.828656Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-11T07:51:17.828736Z 0 [Note] InnoDB: Uses event mutexes
2019-11-11T07:51:17.828772Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-11-11T07:51:17.828808Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-11T07:51:17.828842Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-11T07:51:17.829070Z 0 [Note] InnoDB: Number of pools: 1
2019-11-11T07:51:17.829551Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-11T07:51:17.833789Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-11T07:51:17.849710Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-11T07:51:17.853264Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-11T07:51:17.864496Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-11T07:51:17.873247Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-11T07:51:17.873783Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-11T07:51:17.888711Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-11-11T07:51:17.890082Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-11-11T07:51:17.890456Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-11-11T07:51:17.890783Z 0 [Note] InnoDB: Waiting for purge to start
2019-11-11T07:51:17.942458Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 12440100
2019-11-11T07:51:17.943225Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-11-11T07:51:17.948694Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2019-11-11T07:51:17.949305Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2019-11-11T07:51:17.950629Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:17.951146Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2019-11-11T07:51:17.951289Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:17.953359Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-11-11T07:51:17.953456Z 0 [Note] IPv6 is available.
2019-11-11T07:51:17.953501Z 0 [Note]   - '::' resolves to '::';
2019-11-11T07:51:17.953548Z 0 [Note] Server socket created on IP: '::'.
2019-11-11T07:51:17.966658Z 0 [Note] InnoDB: Buffer pool(s) load completed at 191111  7:51:17
2019-11-11T07:51:17.968057Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2019-11-11T07:51:17.976634Z 0 [Note] Event Scheduler: Loaded 0 events
2019-11-11T07:51:17.977263Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

日志:log

2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Serve
r 5.7.28-1debian9 started.
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysq
l'
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Serve
r 5.7.28-1debian9 started.
2019-11-11 07:51:08+00:00 [Note] [Entrypoint]: Initializing database files
2019-11-11T07:51:08.909705Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
 deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2019-11-11T07:51:09.097858Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-11-11T07:51:09.127239Z 0 [Warning] InnoDB: Creating foreign key constraint 
system tables.
2019-11-11T07:51:09.184120Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 05f5ac40-0458-11ea-8850-0242ac110003.
2019-11-11T07:51:09.185229Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2019-11-11T07:51:10.330922Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:10.589860Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Database files initialized
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Starting temporary server
2019-11-11 07:51:12+00:00 [Note] [Entrypoint]: Waiting for server startup
2019-11-11T07:51:12.933678Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T07:51:12.936883Z 0 [Note] mysqld (mysqld 5.7.28) starting as process 78 ...
2019-11-11T07:51:12.942807Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-11T07:51:12.943359Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-11T07:51:12.943901Z 0 [Note] InnoDB: Uses event mutexes
2019-11-11T07:51:12.943987Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-11-11T07:51:12.944047Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-11T07:51:12.944106Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-11T07:51:12.945280Z 0 [Note] InnoDB: Number of pools: 1
2019-11-11T07:51:12.949775Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-11T07:51:12.953688Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-11T07:51:12.969532Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-11T07:51:12.974490Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-11T07:51:12.990591Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-11T07:51:13.003529Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-11T07:51:13.004382Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-11T07:51:13.027368Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-11-11T07:51:13.029315Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-11-11T07:51:13.030398Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-11-11T07:51:13.031377Z 0 [Note] InnoDB: Waiting for purge to start
2019-11-11T07:51:13.081712Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 2628227
2019-11-11T07:51:13.082782Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-11-11T07:51:13.090557Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2019-11-11T07:51:13.091139Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2019-11-11T07:51:13.092542Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:13.094168Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:13.095511Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2019-11-11T07:51:13.097273Z 0 [Note] InnoDB: Buffer pool(s) load completed at 191111  7:51:13
2019-11-11T07:51:13.100645Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2019-11-11T07:51:13.123759Z 0 [Note] Event Scheduler: Loaded 0 events
2019-11-11T07:51:13.124845Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2019-11-11 07:51:13+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.

2019-11-11 07:51:15+00:00 [Note] [Entrypoint]: Stopping temporary server
2019-11-11T07:51:15.604207Z 0 [Note] Giving 0 client threads a chance to die gracefully
2019-11-11T07:51:15.605263Z 0 [Note] Shutting down slave threads
2019-11-11T07:51:15.605802Z 0 [Note] Forcefully disconnecting 0 remaining clients
2019-11-11T07:51:15.605882Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-11-11T07:51:15.606002Z 0 [Note] Binlog end
2019-11-11T07:51:15.607806Z 0 [Note] Shutting down plugin 'ngram'
2019-11-11T07:51:15.608395Z 0 [Note] Shutting down plugin 'partition'
2019-11-11T07:51:15.608465Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2019-11-11T07:51:15.609059Z 0 [Note] Shutting down plugin 'ARCHIVE'
2019-11-11T07:51:15.609191Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2019-11-11T07:51:15.609277Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2019-11-11T07:51:15.609322Z 0 [Note] Shutting down plugin 'MyISAM'
2019-11-11T07:51:15.609373Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2019-11-11T07:51:15.609416Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2019-11-11T07:51:15.609456Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2019-11-11T07:51:15.609494Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2019-11-11T07:51:15.609534Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2019-11-11T07:51:15.609573Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2019-11-11T07:51:15.609614Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2019-11-11T07:51:15.609670Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2019-11-11T07:51:15.609714Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2019-11-11T07:51:15.609762Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2019-11-11T07:51:15.609815Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2019-11-11T07:51:15.609868Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2019-11-11T07:51:15.609919Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2019-11-11T07:51:15.609971Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2019-11-11T07:51:15.615531Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2019-11-11T07:51:15.617076Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2019-11-11T07:51:15.617140Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2019-11-11T07:51:15.617186Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2019-11-11T07:51:15.617229Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2019-11-11T07:51:15.617271Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2019-11-11T07:51:15.617313Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2019-11-11T07:51:15.617355Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2019-11-11T07:51:15.617396Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2019-11-11T07:51:15.617914Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2019-11-11T07:51:15.620273Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2019-11-11T07:51:15.621961Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2019-11-11T07:51:15.622677Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2019-11-11T07:51:15.623574Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2019-11-11T07:51:15.624223Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2019-11-11T07:51:15.624315Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2019-11-11T07:51:15.624362Z 0 [Note] Shutting down plugin 'InnoDB'
2019-11-11T07:51:15.626477Z 0 [Note] InnoDB: FTS optimize thread exiting.
2019-11-11T07:51:15.626931Z 0 [Note] InnoDB: Starting shutdown...
2019-11-11T07:51:15.727595Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:15.728625Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 191111  7:51:15
2019-11-11T07:51:16.941374Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12440100
2019-11-11T07:51:16.943525Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-11-11T07:51:16.943923Z 0 [Note] Shutting down plugin 'MEMORY'
2019-11-11T07:51:16.943977Z 0 [Note] Shutting down plugin 'CSV'
2019-11-11T07:51:16.944010Z 0 [Note] Shutting down plugin 'sha256_password'
2019-11-11T07:51:16.944040Z 0 [Note] Shutting down plugin 'mysql_native_password'
2019-11-11T07:51:16.944161Z 0 [Note] Shutting down plugin 'binlog'
2019-11-11T07:51:16.945995Z 0 [Note] mysqld: Shutdown complete

2019-11-11 07:51:17+00:00 [Note] [Entrypoint]: Temporary server stopped

2019-11-11 07:51:17+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2019-11-11T07:51:17.822461Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T07:51:17.823566Z 0 [Note] mysqld (mysqld 5.7.28) starting as process 1 ...
2019-11-11T07:51:17.828174Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-11T07:51:17.828656Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-11T07:51:17.828736Z 0 [Note] InnoDB: Uses event mutexes
2019-11-11T07:51:17.828772Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-11-11T07:51:17.828808Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-11T07:51:17.828842Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-11T07:51:17.829070Z 0 [Note] InnoDB: Number of pools: 1
2019-11-11T07:51:17.829551Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-11T07:51:17.833789Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-11T07:51:17.849710Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-11T07:51:17.853264Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-11T07:51:17.864496Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-11T07:51:17.873247Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-11T07:51:17.873783Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-11T07:51:17.888711Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-11-11T07:51:17.890082Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-11-11T07:51:17.890456Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-11-11T07:51:17.890783Z 0 [Note] InnoDB: Waiting for purge to start
2019-11-11T07:51:17.942458Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 12440100
2019-11-11T07:51:17.943225Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-11-11T07:51:17.948694Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2019-11-11T07:51:17.949305Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2019-11-11T07:51:17.950629Z 0 [Warning] CA certificate ca.pem is self signed.
2019-11-11T07:51:17.951146Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2019-11-11T07:51:17.951289Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-11-11T07:51:17.953359Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-11-11T07:51:17.953456Z 0 [Note] IPv6 is available.
2019-11-11T07:51:17.953501Z 0 [Note]   - '::' resolves to '::';
2019-11-11T07:51:17.953548Z 0 [Note] Server socket created on IP: '::'.
2019-11-11T07:51:17.966658Z 0 [Note] InnoDB: Buffer pool(s) load completed at 191111  7:51:17
2019-11-11T07:51:17.968057Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2019-11-11T07:51:17.976634Z 0 [Note] Event Scheduler: Loaded 0 events
2019-11-11T07:51:17.977263Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

停止容器
在这里插入图片描述
查看环境变量在这里插入图片描述
查看映射的端口
在这里插入图片描述
重新部署(一般修改了环境变量,端口等参数,需要重新部署)
在这里插入图片描述
也可以连接到容器里。使用Exec,然后输入bash,进入容器。
在这里插入图片描述
可以执行常规的linux命令。由于容器跟传统的linux系统有很大的区别,所以很多命令在容器中是没有的。

在这里插入图片描述
删除容器
在这里插入图片描述
恢复已经删除过的容器。
在这里插入图片描述
在这里插入图片描述

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐