docker 系列四、部署centos7操作系统

版权声明:未经作者同意请勿转载,需要和博主联系请发邮件[email protected] https://blog.csdn.net/wu2700222/article/details/87857030

1、下载镜像文件

docker pull centos:7

2、查看下载的镜像

docker  images

3、进入到创建容器中运行交互命令

wuyachaodeMacBook-Pro:~ ll$ docker run --privileged -ti --name test docker.io/centos:7 /usr/sbin/init

停止运行容器

docker stop test

删除容器

docker rm test

删除镜像

docker rmi 49f7960eb7e4

猜你喜欢

转载自blog.csdn.net/wu2700222/article/details/87857030