【生意多】-免费发布分类信息
当前位置: 首页 » 新闻 » 教程 » 操作系统 » 正文

启动了韩剧在线观看高清(启动英文)

放大字体  缩小字体 发布日期:2022-07-01 08:08:41    浏览次数:10

一、说明:

conf目录下:主要copy的文件时httpd.conf,主要是配置apache可以访问到git并通过账号密码控制
git-team.htpasswd: 这个文件提供了初始化的用户,主要包含两个,分别是usertest/admin
[附件:httpd.conf]

[附件:git-team.htpasswd]

二、创建DockerFile

FROM centos:centos7
MAINTAINER Imagine Lin<linzhiguo@afcat.com.cn>
ENV SSH_PASSWORD=P@ssw0rd
COPY git-team.htpasswd /opt/http_git/gitpasswd/git-team.htpasswd
RUN yum -y install git wget vim net net-tools grep awk sed exec httpd-2.4.6 httpd-devel-2.4.6 httpd-tools-2.4.6 &&
mkdir -p /opt/http_git/ud.git &&
cd /opt/http_git/ud.git &&
git init --bare &&
chown -R apache:apache /opt/http_git &&
chown apache:apache /opt/http_git/gitpasswd/git-team.htpasswd &&
chmod 640 /opt/http_git/gitpasswd/git-team.htpasswd 
COPY conf /etc/httpd/conf
EXPOSE 80
CMD ["/usr/sbin/httpd","-D","FOREGROUND"]

三、构建镜像

#uyw-git: 是镜像名称。1.0是tag名称
docker build -t uyw-git:1.0 .

四、运行镜像

docker run -d -it -p 10000:80 --name uyw-git -v dataVolumeGit1:/opt/http_git/gitpasswd uyw-git:1.0

 
(文/小编)
打赏
免责声明
• 
本文为小编原创作品,作者: 小编。欢迎转载,转载请注明原文出处:https://www.31duo.com/news/show-3580669.html 。本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们。
 

(c)2016-2019 31DUO.COM All Rights Reserved浙ICP备19001410号-4

浙ICP备19001410号-4