[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
098f11933a88 bitnami/kafka "/opt/bitnami/script…"2 weeks ago Up 8 days 9092/tcp, 0.0.0.0:9097->9097/tcp, :::9097->9097/tcp kafka-03
a250cf273334 bitnami/kafka "/opt/bitnami/script…"2 weeks ago Up 8 days 9092/tcp, 0.0.0.0:9096->9096/tcp, :::9096->9096/tcp kafka-02
65ce0954dcbc bitnami/kafka "/opt/bitnami/script…"2 weeks ago Up 8 days 9092/tcp, 0.0.0.0:9095->9095/tcp, :::9095->9095/tcp kafka-01
7027dccb277a bitnami/zookeeper "/opt/bitnami/script…"2 weeks ago Up 8 days 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp, :::2181->2181/tcp, 8080/tcp kafka-zk
a7b2efed4e65 nickzurich/efak:latest "entrypoint.sh"3 weeks ago Up 8 days 0.0.0.0:8048->8048/tcp, :::8048->8048/tcp, 8080/tcp kafka-eagle
1739859499c5 nginx "/docker-entrypoint.…"3 months ago Up 8 days 0.0.0.0:80->80/tcp, :::80->80/tcp sc-nginx
59ae3d865576 nacos/nacos-server:v2.2.2 "bin/docker-startup.…"3 months ago Up 8 days 0.0.0.0:8848->8848/tcp, :::8848->8848/tcp, 0.0.0.0:9848->9848/tcp, :::9848->9848/tcp spzx-nacos
2732056a547f quay.io/minio/minio "/usr/bin/docker-ent…"5 months ago Up 8 days 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp spzx-minio
c14772057ab8 redis "docker-entrypoint.s…"5 months ago Up 8 days 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp spzx-redis
ab66508d9441 mysql:8 "docker-entrypoint.s…"5 months ago Up 8 days 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp spzx-mysql
[root@localhost ~]#
[root@localhost ~]# docker exec -it spzx-mysql /bin/bash
root@ab66508d9441:/# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 544
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c)2000, 2021, Oracle and/or its affiliates.
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>
mysql> use db_spzx;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql>