docker-以安装软件的方式介绍docker部分命令的使用

[root@ipha-dev71-1 docker]# docker search python    # 搜索镜像
[root@ipha-dev71-1 docker]# docker pull centos/python-36-centos7   # 下载镜像
[root@ipha-dev71-1 docker]# docker images    # 镜像查看(以下字段对应:仓库名称 版本号 镜像ID 创建时间 )
REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
centos/python-36-centos7   latest              046b1b132fcb        4 days ago          717MB
hello-world                latest              fce289e99eb9        8 months ago        1.84kB
training/webapp            latest              6fae60ef3446        4 years ago         349MB[root@ipha-dev71-1 docker]# docker rmi hello-world:latest   # 删除镜像
[root@ipha-dev71-1 home]# docker save -o /home/docker_dir/python.tar centos/python-36-centos7  # 镜像保存,-o是指定写入的文件名和路径

猜你喜欢

转载自www.cnblogs.com/wang-mengmeng/p/11533213.html