$docker pull mysql:8.0.22 8.0.22: Pulling from library/mysql a076a628af6f: Pull complete f6c208f3f991: Pull complete 88a9455a9165: Pull complete 406c9b8427c6: Pull complete 7c88599c0b25: Pull complete 25b5c6debdaf: Pull complete 43a5816f1617: Pull complete 69dd1fbf9190: Pull complete 5346a60dcee8: Extracting [==================================================>] 112.8MB/112.8MB ef28da371fc9: Download complete fd04d935b852: Download complete 050c49742ea2: Download complete $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mysql 8.0.22 d4c3cafb11d5 13 months ago 545MB $ docker run --name mysql8022 -e MYSQL_ROOT_PASSWORD=1234 -d -p 3306:3306 mysql:8.0.22 $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6cb68c19e415 mysql:8.0.22 "docker-entrypoint.s…" 26 seconds ago Up 26 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp mysql8022 $ docker stop mysql8022 $ docker start mysql8022 $ docker restart mysql8022 $ docker exec -it mysql8022 /bin/bash root@6cb68c19e415:/# root@6cb68c19e415:/# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.22 MySQL Community Server - GPL Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> |
admin_tls_version | TLSv1,TLSv1.1,TLSv1.2,TLSv1.3 |
immediate_server_version | 999999 |
innodb_version | 8.0.22 |
original_server_version | 999999 |
protocol_version | 10 |
slave_type_conversions | |
tls_version | TLSv1,TLSv1.1,TLSv1.2,TLSv1.3 |
version | 8.0.22 |
version_comment | MySQL Community Server - GPL |
version_compile_machine | x86_64 |
version_compile_os | Linux |
version_compile_zlib | 1.2.11 |