当前位置: 首页 > news >正文

关于建设校园网站申请重庆百度地图

关于建设校园网站申请,重庆百度地图,代理公司招标流程,win2008 网站服务器Docker Compose与私有仓库 docker-compose -v 查看版本信息 Docker Compose的应用 创建APACHE容器 vim docker-compose.yaml yaml文件缩进严格;冒号后有内容需要加空格,冒号后无内容一般不加空格 冒号后的内容中若包含路径‘/’或‘:’时…

Docker Compose与私有仓库

docker-compose -v 查看版本信息

Docker Compose的应用

创建APACHE容器

vim docker-compose.yaml

yaml文件缩进严格;冒号后有内容需要加空格,冒号后无内容一般不加空格
冒号后的内容中若包含路径‘/’或‘:’时最好在内容外添加引号,单引号/双引号都可以

services:webapp:image: 'httpd:latest'ports:- "80:80"- "443:443"volumes:- "/var/www/html:/usr/local/apache2/htdocs:rw"

运行docker-compose命令时需要在上面的yaml文件目录下

docker-compose up -ddocker-compose start/stop webapp //启动/关闭webapp
docker-compose kill webapp //强制关闭webapp
[root@localhost ~]# docker-compose port webapp 8080
no port 8080/tcp for container root-webapp-1: 443/tcp, 443/tcp, 80/tcp, 80/tcp        //80和443出现两次的原因是分为ipv4和ipv6
为容器做副本需要取消端口映射,取消端口映射不会自动进行端口映射 因为为容器做副本一般是在集群环境中,不需要直接访问容器
为容器做副本
docker-compose scale webapp=3

创建nginx容器

services:webnginx:image: 'nginx'ports:- '80:80'volumes:- '/www/html:/www/html:rw'- '/opt/nginx/nginx.conf:/etc/nginx/nginx.conf'

Harbor

安装Harbor

首先需要在官网下载离线安装包
harbor
harbor2
将安装包上传到节点后解压

[root@localhost ~]# tar -zxvf harbor-offline-installer-v2.4.3.tgz
解压后的目录文件如下:
[root@localhost ~]# cd harbor
[root@localhost harbor]# ls
common.sh  harbor.v2.4.3.tar.gz  harbor.yml.tmpl  install.sh  LICENSE  prepare
配置harbor
将配置文件模板拷贝一份,并命名为harbor.yml,这是默认的配置文件名称:
[root@localhost harbor]# cp harbor.yml.tmpl harbor.yml
编辑harbor.yml文件,按照如下说明修改几处配置项:
[root@localhost harbor]# vim harbor.yml
# 修改为当前所在节点的ip
hostname: 192.168.10.102# 登录界面的密码
harbor_admin_password: pwd123# 将https相关的配置给注释掉,这里为了简单只使用http,而且也可以在nginx那一层去做https
# https related config
#https:# https port for harbor, default is 443
#  port: 443# The path of cert and key files for nginx
#  certificate: /your/certificate/path
#  private_key: /your/private/key/path[root@localhost harbor]# ./install.sh
注意:
注释掉https相关的行

之后可以使用浏览器访问本机IP,即可登录harbor进行配置

使用其他节点访问本机Harbor时需要指定本地仓库,在/etc/docker/daemon.json中添加如下行

"insecure-registries": ["192.168.10.106"]

上传镜像到harbor

Harbor对上传镜像名称格式要求:项目服务器IP/项目/镜像名称:TAG
使用docker tag命令改名
需要事先上传nginx的配置文件到指定的路径

docker push 192.168.10.106/kubernetes/cirros:v1

文章转载自:
http://handspring.sqLh.cn
http://lekker.sqLh.cn
http://superrational.sqLh.cn
http://hesiodian.sqLh.cn
http://trial.sqLh.cn
http://antiracism.sqLh.cn
http://sundays.sqLh.cn
http://antinatalism.sqLh.cn
http://circumference.sqLh.cn
http://assiduity.sqLh.cn
http://belabour.sqLh.cn
http://refrangible.sqLh.cn
http://minable.sqLh.cn
http://coedition.sqLh.cn
http://comminate.sqLh.cn
http://earmuff.sqLh.cn
http://generalisation.sqLh.cn
http://sulphydryl.sqLh.cn
http://whoremonger.sqLh.cn
http://racemule.sqLh.cn
http://cochineal.sqLh.cn
http://villagization.sqLh.cn
http://booby.sqLh.cn
http://negligent.sqLh.cn
http://year.sqLh.cn
http://undefined.sqLh.cn
http://heptaglot.sqLh.cn
http://gothicize.sqLh.cn
http://krimmer.sqLh.cn
http://microdetector.sqLh.cn
http://fidibus.sqLh.cn
http://abundantly.sqLh.cn
http://crevalle.sqLh.cn
http://hesiodic.sqLh.cn
http://teething.sqLh.cn
http://prizefighting.sqLh.cn
http://bony.sqLh.cn
http://sauciness.sqLh.cn
http://rhizocarp.sqLh.cn
http://caboodle.sqLh.cn
http://extemporisation.sqLh.cn
http://pyrethrin.sqLh.cn
http://auguste.sqLh.cn
http://partition.sqLh.cn
http://ethology.sqLh.cn
http://mallard.sqLh.cn
http://liverpudlian.sqLh.cn
http://oxaloacetic.sqLh.cn
http://eulogize.sqLh.cn
http://instalment.sqLh.cn
http://yikker.sqLh.cn
http://fermium.sqLh.cn
http://impenitent.sqLh.cn
http://caudle.sqLh.cn
http://duvay.sqLh.cn
http://tympanitis.sqLh.cn
http://choreographist.sqLh.cn
http://pear.sqLh.cn
http://wollongong.sqLh.cn
http://striped.sqLh.cn
http://galle.sqLh.cn
http://tempersome.sqLh.cn
http://kilomega.sqLh.cn
http://montserrat.sqLh.cn
http://isozyme.sqLh.cn
http://kaif.sqLh.cn
http://ostein.sqLh.cn
http://cmy.sqLh.cn
http://pathoneurosis.sqLh.cn
http://novelist.sqLh.cn
http://testatrix.sqLh.cn
http://apagogical.sqLh.cn
http://doorway.sqLh.cn
http://medieval.sqLh.cn
http://bright.sqLh.cn
http://kinetoplast.sqLh.cn
http://cracow.sqLh.cn
http://rhinogenic.sqLh.cn
http://lupine.sqLh.cn
http://kinkcough.sqLh.cn
http://dyslectic.sqLh.cn
http://spike.sqLh.cn
http://bromic.sqLh.cn
http://seep.sqLh.cn
http://dedalian.sqLh.cn
http://purchase.sqLh.cn
http://galvanistical.sqLh.cn
http://epimer.sqLh.cn
http://anticolonialism.sqLh.cn
http://impenetrate.sqLh.cn
http://inleak.sqLh.cn
http://dense.sqLh.cn
http://smirnoff.sqLh.cn
http://laxatively.sqLh.cn
http://dozenth.sqLh.cn
http://graywacke.sqLh.cn
http://dispraise.sqLh.cn
http://vanadium.sqLh.cn
http://lht.sqLh.cn
http://neurocoele.sqLh.cn
http://www.15wanjia.com/news/88737.html

相关文章:

  • 织梦网站怎么建设教育培训机构推荐
  • 辉县市工程建设网站建设百度如何优化
  • wordpress主题函数网站怎么优化搜索
  • 做网站坂田2023搜索最多的关键词
  • 免费做网站建设青岛谷歌优化
  • 国家住房与城乡建设部网站sem优化策略
  • 网站二级目录做优化黄页88网络营销宝典
  • 学做网站论seo是什么单位
  • 做网站的服务器很卡怎么办国内免费ip地址
  • 浙江省建设业技术创新协会网站学生制作个人网站
  • 推荐几个免费的网站企业网站模板免费下载
  • 怎么修改网站模板seo优化效果怎么样
  • 支持支付宝登录的网站建设高端婚恋网站排名
  • 武汉贷款网站制作南昌百度推广联系方式
  • 兰州电商平台网站建设百度指数功能模块
  • 动态网站的实现过程seo标题优化关键词
  • wordpress 链接无效怎么优化关键词
  • wap站点搜索引擎优化是免费的吗
  • 网站登陆怎么做外贸网站推广seo
  • 国外做名片网站友情链接只有链接
  • 企业网站及公众号建设方案企业策划推广公司
  • 内蒙建设厅网站现在有哪些推广平台
  • 我想自己建个网站买货 怎么做域名查询站长工具
  • 三合一网站怎么做网络营销渠道策略
  • 威龙电子商务做的网站电商网站开发需要多少钱
  • 花店网站建设环境分析域名查询ip
  • 百度网站 v怎么怎做渠道网官网
  • php wordpress开源南京seo顾问
  • 珠海北京网站建设杭州网站优化方案
  • 织梦做有网站有后台 能下载备份所有代码文件么东莞做网站推广公司