搜索

docker search nginx

docker search nginx -s 500

下载

docker pull ubuntu(默认下载官方仓库服务器中的latest版本,且跟踪最新)

docker pull ubuntu:16.04

列出镜像

docker images

添加标签

docker tag ubuntu:latest myubuntu:beta

镜像详情

docker inspect ubuntu:14.04

镜像属性

docker inspect ubuntu:14.04 -f .Size

镜像历史

docker history ubuntu:14.04

删除镜像 docker rmi ubuntu:14.04 docker rmi ubuntu:14.04 -f 强制删除运行中的镜像

创建镜像 1.基于已有镜像创建 docker commit -m "add newfile" -a "docker" a92324bdash test:beta 2.基于镜像模板导入 docker import -ubuntu:14.04 镜像模板可以在 https://download.openvz.org/template/precreated/ 下载 3.基于dockerfile创建

存出镜像 docker save -o ubuntu_14.04.tar ubuntu:14.04

读入镜像 docker load --input ubuntu_14.04.tar docker load < ubuntu_14.04.tar

上传镜像 1.给镜像添加新的标签,符合 username/repository:tag 格式 docker tag test:latest user/test:latest 2.上传 docker push

results matching ""

    No results matching ""