docker基本操作
1.安装yum源,/etc/yum.repos.d [docker] name=doker repo baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever enabled=1 gpgcheck=0 # yum update # yum -y install docker-engine 2.服务相关 # service docker restart 重启 # docker version 查看版本 3.镜像相关命令 # docker pull hello-world 获取镜像 # docker run -it ubuntu /bin/bash 运行镜像 # docker images 查看镜像信息 # docker tag hello-world:latest my-hello-world:my-latest 添加镜像标签 # docker inspect ubuntu 查看镜像详细信息 # docker history hello-world 查看镜像历史信息 # docker search --automated -s 3 nginx 查看镜像,--automated:显示自动创建的,-s:评价值 # docker rmi hello-world 删除镜像 # docker