1.使用命令查看mysql
NAME DESCRIPTION STARS OFFICIAL AUTOMATED mysql MySQL is a widely used, open-source relation… 6506 [OK] mariadb MariaDB is a community-developed fork of MyS… 2053 [OK] mysql/mysql-server Optimized MySQL Server Docker images. Create… 478 [OK] percona Percona Server is a fork of the MySQL relati… 344 [OK] zabbix/zabbix-server-mysql Zabbix Server with MySQL database support 106 [OK] hypriot/rpi-mysql RPi-compatible Docker Image with Mysql 89 centurylink/mysql Image containing mysql. Optimized to be link… 60 [OK] zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server wi… 58 [OK] 1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 36 [OK] tutum/mysql Base docker image to run a MySQL database se… 32 centos/mysql-57-centos7 MySQL 5.7 SQL database server 31 mysql/mysql-cluster Experimental MySQL Cluster Docker images. Cr… 30 schickling/mysql-backup-s3 Backup MySQL to S3 (supports periodic backup… 20 [OK] zabbix/zabbix-proxy-mysql Zabbix proxy with MySQL database support 15 [OK] bitnami/mysql Bitnami MySQL Docker Image 15 [OK] linuxserver/mysql A Mysql container, brought to you by LinuxSe… 14 centos/mysql-56-centos7 MySQL 5.6 SQL database server 8 openshift/mysql-55-centos7 DEPRECATED: A Centos7 based MySQL v5.5 image… 6 circleci/mysql MySQL is a widely used, open-source relation… 5 dsteinkopf/backup-all-mysql backup all DBs in a mysql server 4 [OK] mysql/mysql-router MySQL Router provides transparent routing be… 2 openzipkin/zipkin-mysql Mirror of https://quay.io/repository/openzip… 1 cloudfoundry/cf-mysql-ci Image used in CI of cf-mysql-release 0 cloudposse/mysql Improved `mysql` service with support for `m… 0 [OK] ansibleplaybookbundle/mysql-apb An APB which deploys RHSCL MySQL 0 [OK]
这些其实就是在kitematic中搜索mysql出来的结果是一样的
2.下载最新版本的mysql
Using default tag: latest latest: Pulling from library/mysql 683abbb4ea60: Pull complete 0550d17aeefa: Pull complete 7e26605ddd77: Pull complete 9882737bd15f: Pull complete 999c06ab75f6: Pull complete c71d695f9937: Pull complete c38f847c1491: Pull complete 5e0cb05a8fc3: Pull complete c89e3e373fca: Pull complete fa39a2c9922d: Pull complete b293d9c897c4: Pull complete 3dc061869740: Pull complete Digest: sha256:43ed4f8c9d1695e97a39cdfe9475af9096e3723cfb79d820d8da00d61a277a85 Status: Downloaded newer image for mysql:latest(红字代表已经下载好了)
3.查看本地所有镜像
sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE mysql latest 8d99edb9fd40 13 days ago 445MB hello-world latest e38bc07ac18e 2 months ago 1.85kB