Docker操作命令

2018/11/04 Docker 阅读次数:

docker 操作记录

step 1: 镜像搜索

docker search centos

step 2: 镜像查看

docker images

docker image ls

step 3: 镜像下载

docker pull name
例如docker pull ubuntu

step 4: 镜像删除

docker rmi IMAGE ID

docker image rm IMAGE ID

step 5: 镜像保存备份

docker save
例如docker save -o liunx_images.tar ubuntu

step 6: 镜像备份导入

docker load
例如docker load -i liunx_images.tar

step 7: 镜像重命名

docker tag
例如docker tag ea4c ubuntu-new:newtag

step 8: 镜像详细信息

docker image inspect

docker inspect
例如: docker image inspect ubuntu  docker image inspect -f "" ubuntu

step 9: 镜像历史信息

docker history
例如docker history ubuntu -H=false

step 10: 查看运行的镜像

docker ps

dde-api startdde dde dde-control-center dde-daemon dde-session-ui

Search

    Table of Contents