docker安装mysql

it2022-05-05  126

Docker 安装mysql

1、yum install epel-release -y

2、yum install docker -y

3、systemctl enable docker

4、systemctl start docker

5、docker pull mysql/mysql-server:5.7

6、docker images  

存出和载入镜像

存出镜像

如果要导出镜像到本地文件,可以使用 docker save 命令。

$ sudo docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu 14.04 c4ff7513909d 5 weeks ago 225.4 MB ... $sudo docker save -o ubuntu_14.04.tar ubuntu:14.04

载入镜像

可以使用 docker load 从导出的本地文件中再导入到本地镜像库,例如

$ sudo docker load --input ubuntu_14.04.tar

$ sudo docker load < ubuntu_14.04.tar

这将导入镜像以及其相关的元数据信息(包括标签等)。

转载于:https://www.cnblogs.com/quinn-alice/p/8304140.html

相关资源:各显卡算力对照表!

最新回复(0)