mac下使用docker

启动docker

1.docker images 列出所有镜像

RESOPSITORY 镜像仓库名称

TAG 镜像标签 latest 表示最新版本

IAMGE_ID  12位字符串 唯一镜像id

CREATED 创建时间

SIZE  大小

2.docker pull centos 拉取镜像

3.sudo docker run hello-world

docker -v 查看版本号

docker -info 查看相关信息

docker seach centos

docker save hello-world>ilovehelloword.tar

进入一个运行中的容器 docker attach **********

猜你喜欢

转载自blog.csdn.net/resilient/article/details/84677284