Linux中Docker的搭建与应用

发布时间 2023-05-25 16:53:18作者: w328

1.Docker的安装

[root@localhost~]#yum install -y docker

2.启动Docker,并设置开机自启动。

[root@localhost~]#systemctl start docker

[root@localhost~]#systemctl status docker

3.获取镜像并查看本地镜像

[root@localhost~]#docker pull wordpress

[root@localhost~]#docker pull mysql

[root@localhost~]#docker images

4.启动容器mysql