docker常用操作简述

获取镜像

$ docker pull ubuntu:14.04

$ docker pull ubuntu
该命令实际上下载的就是ubuntu:latest镜像。


查看镜像信息

$ docker images

搜索镜像

$ docker search nginx

删除镜像

$ docker rmi myubuntu:latest

创建镜像

$ docker commit

运行镜像

$ docker run -it ubuntu:14.04 /bin/bash

猜你喜欢

转载自blog.csdn.net/yekoufeng/article/details/80036704