1、直接拉去最新的Nginx 镜像
docker pull nginx:latest
2、查看本地镜像
docker images
可以发现Nginx已经成功拉过来了
3、运行容器
docker run --name nginx -p 8069:80 -d nginx
打开ip:8069
ip是你服务器的地址,8069是你的端口
微信扫一扫
docker pull nginx:latest
docker images
可以发现Nginx已经成功拉过来了
3、运行容器
docker run --name nginx -p 8069:80 -d nginx
打开ip:8069
ip是你服务器的地址,8069是你的端口
相关推荐