- docker pull 镜像名
从registry下载一个image 或者repository
拉取nginx镜像 - 启动nginx镜像
有两种方法来启动nginx镜像
1.docker create 镜像名
Usage: docker create [OPTIONS] IMAGE [COMMAND] [ARG…]
Create a new container
创建后要启动镜像
访问成功
docker run启动
也启动成功
Usage: docker create [OPTIONS] IMAGE [COMMAND] [ARG…]
Create a new container
创建后要启动镜像
访问成功
docker run启动
也启动成功