docker 基础01

67 阅读1分钟

docker基础概念

镜像 images 文件

容器 镜像运行之后的进程

仓库 放镜像的地方

docker -version 查看docker 版本

docker命令

docker ps 列出容器

docker logs -f 容器名 打印输出容器运行日志

docker 安装nginx

docker search nginx

docker pull nginx

docker images | grep nginx
查看nginx镜像

运行nginx

docker run --name temp-nginx -p 10080:80 -d nginx ##-d 后台运行