1. 搜索镜像 docker search mysql 2. 获取镜像 docker pull mysql 3.查看docker运行的容器(可以获取到这个容器的id) docker ps 4.访问这个容器 docker exec -it 73877e65c07d /bin/bash 5.已拉取的镜像 [root@localhost docker]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE mysql latest 0d64f46acfd1 3 weeks ago 544MB 6.删除镜像 docker image rmdocker image rm -f # 强制删除



