1. 前提是Docker已经安装好了

没有安装的可以看这篇文章-->CentOS 7安装Docker

2.拉取mysql镜像

docker pull mysql
docker images

 可以看到我们拉取的镜像

[root@bogon ~]# docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
mynginx                     latest              1964089d63e6        11 days ago         108 MB
docker.io/mysql             5.7                 98455b9624a9        2 weeks ago         372 MB
docker.io/jenkins/jenkins   lts                 806f56c84444        8 weeks ago         703 MB
docker.io/tomcat            latest              168588387c68        2 months ago        463 MB
docker.io/redis             latest              0f55cf3661e9        2 months ago        95 MB
docker.io/nginx             latest              f09fe80eb0e7        2 months ago        109 MB
docker.io/mysql             latest              81f094a7e4cc        2 months ago        477 MB
docker.io/zookeeper         latest              06b178591ab3        2 months ago        150 MB
docker.io/php               5.6-fpm             3458979c7744        2 months ago        344 MB
View Code

相关文章:

  • 2021-12-03
  • 2021-08-25
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2021-09-13
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案