windows docker 常用命令
Windows下进入到docker容器镜像内部
docker exec -it 0a6f2f30296d /bin/bash
修改镜像
docker image tag dockette/openjdk8 jdk8
修改容器
docker image rename dockette/openjdk8 jdk8
拷贝文件
docker cp dd51994c870d:/etc/nginx/nginx.conf d:\\docker_data\\nginx\\conf
刷新DNS缓存
ipconfig /flushdns
//********************ngingx 配置********************************
server {
listen *:80;
server_name www.szcrb.com;
root /usr/share/nginx/html/ly_crb;
location / {
root /usr/share/nginx/html/ly_crb;
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
}
posted on 2023-06-17 08:27 zyp_java_net 阅读(62) 评论(0) 编辑 收藏 举报