docker & Harbor 问题

1:prepare失败

  • KeyError: 'data_volume’
  • 解决:https://blog.csdn.net/u011709380/article/details/114258655
  • 将harbor.yml和harbor.yml.teml保持一致就可以了
Traceback (most recent call last):
  File "main.py", line 15, in <module>
    cli()
  File "/usr/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/src/app/commands/prepare.py", line 37, in prepare
    config_dict = parse_yaml_config(conf, with_notary=with_notary, with_trivy=with_trivy, with_chartmuseum=with_chartmuseum)
  File "/usr/src/app/utils/configs.py", line 168, in parse_yaml_config
    config_dict['data_volume'] = configs['data_volume']
KeyError: 'data_volume'

2:The protocol is https but attribute ssl_cert is not set

  • 解决:https://blog.csdn.net/zhengzaifeidelushang/article/details/110781033
  • 注释掉 https的配置

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ZTPvnFy7-1622814191460)(C:%5CUsers%5CAdministrator.DESKTOP-CGIO78B%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5Cimage-20210602193932324.png)]

3:Harbor的初始密码

  • admin
  • Harbor12345

4:Docker tag

  • 菜鸟教程 打标签

5:卡在了

Using default tag: latest
The push refers to repository [beijiang.fun:85/tensquare/123]
Get https://beijiang.fun:85/v2/: http: server gave HTTP response to HTTPS client

6:docker 命令

  • docker rmi hello-world
docker run -d  \--name jenkins -u root \-p 8888:9000  \-v /var/jenkins_home:/var/jenkins_home  \jenkinsci/blueocean
  • 停止一个容器的运行
  • docker stop ID
  • docker kill ID

7:端口号

  • netstat -anp |grep 8888
  • netstat -nultp 查看所有的端口号
docker run -d  \--name beijiangCrying -u root \-p 9090:8080  \-v /var/jenkins_home:/var/jenkins_home  \jenkinsci/blueocean

8:端口号不通

  • Linux 端口访问不通问题:https://yuchuanfeng.github.io/posts/linux-centos-port/

9:telnet

  • 打开控制面板,开启功能
  • telnet beijiang.fun 8888

10:创建新Docker容器时出现“The container name “/xxx” is already in use by container xxxxxxxxxxx…”问题的解决办法

  • https://blog.csdn.net/iw1210/article/details/84674936

  • 端口ping 不通

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值