Skip to content

2030405043/nginxDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

将文件打进镜像中方式.

  1. 打包镜像 docker build -t image:tag .

  2. 运行容器 docker run -p:port:8080 -d --name 容器名 image:tag

单独部署nginx方式

docker pullnginx:1.16-alpine

docker run -d -p 8082:80 --name nginx -v /nginx/www:/usr/share/nginx/html -v /nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /nginx/logs:/var/log/nginx nginx:1.16-alpine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published