Git Product home page Git Product logo

docker_image_pusher's Introduction

大家好我是技术爬爬虾

分享好玩有趣软件Diy的科技类博主

B站,抖音,Youtube 全网同名

docker_image_pusher's People

Contributors

tech-shrimp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker_image_pusher's Issues

是否要登陆hub.docker.com的官网

dockerhub好像对匿名(就是没登录)的用户有一定的拉取限制(比如拉取速度),还要不要加一个对dockerhub的登陆,

增加一个特殊前缀,用于每次只拉取当前更改的镜像

是否考虑增加一个特殊的前缀,拼接在镜像前面,用于判断,此次只推这个镜像,而不是每次都是全量推。
类似:curnew/$namespec/$image

获取命名空间

         name_space=$(echo "$image" | awk -F'/' '{if (NF>1) print $1}'| awk '{print $1}')
         echo "name_space: $name_space"
         # 如果镜像名称以curnew开头,则命名空间取第二个字符
         if [[ "${image}" == curnew/* ]]; then
           name_space=$(echo "$image" | awk -F'/' '{if (NF>1) print $2}')
         fi

if [[ "${line}" == curenew/* ]]; then
# 去掉镜像名称前的curenew/
image=${line#*curenew/}
echo "image $image"
line=${line#*curenew/}
echo "最终镜像为 image $line"
else
continue
fi
docker pull $line

登录aliyn: unauthorized: authentication required

信息如下:

Run docker/login-action@v3
  with:
    registry: ***
    username: ***
    password: ***
    ecr: auto
    logout: true
  env:
    ALIYUN_REGISTRY: ***
    ALIYUN_NAME_SPACE: ***
Logging into ***...
Error: Error response from daemon: Get "https://***/v[2](https://github.com/eyea/docker_image_pusher/actions/runs/9495396972/job/26167547809#step:3:2)/": unauthorized: authentication required

本地登录成功

➜  ~ sudo docker login [email protected] registry.cn-somewhere.aliyuncs.com
Password:
Login Succeeded

有个bug

daprio/dashboard
#linode/dashboard:v2.7.0

例如,我要是只写 第一个 那么在阿里云上面就只会显示 dashboard
我要是两个都写上 才会区分仓库 如
daprio_dashboard
linode_dashboard

希望 只有一个的时候也显示前缀

修bug啦

就是这个程序每次拉去镜像都要把文件清空重新输入才行,一旦你的image.txt那个文件存在上一次上传过的镜像名,你不把镜像名删除掉,在提交修改文件后就会报错,一定要清空文件才能重新编写image.txt,假设我拉取了最新版本的nginx,文件内容为nginx,想加一个mysql5.7的镜像就必须把image.txt里的nginx这个名字删掉不然就会出问题
Uploading PixPin_2024-06-16_21-28-00.png…

拉取镜像时报错,好像是提示password标志不安全

Run docker login -u $ALIYUN_REGISTRY_USER -p $ALIYUN_REGISTRY_PASSWORD $ALIYUN_REGISTRY
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://***/v2/": unauthorized: authentication required
Error: Process completed with exit code 1.

镜像仓库同名的可能性

真心感谢你项目分享呢!
我不完全确认以下的问题:
拉取镜像-xhofe/alist:latest后,再拉取xiaoyaliu/alist:latest,阿里云的仓库中就只有xiaoyaliu/alist的alist了;
是不是由于阿里云的仓库只有容器名导致的,就把xhofe/alist的镜像给替代了。

镜像版本带sha256值时报错

docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
镜像名字带sha256值,报错,是不是不能带这个标签啊,这个有办法解决吗
image

阿里云好像限制了

【阿里云】容器镜像服务ACR加速器功能变更通知

您好,为进一步规范镜像加速器工具的使用,容器镜像服务ACR计划于2024年07月02日对镜像加速器功能进行相应的调整。
具体变更内容如下:

1、调整镜像加速器功能的受众范围,仅限阿里云用户在具备公网访问能力的相关阿里云云产品资源上使用该能力。
2、仅支持通过镜像加速器拉取一定限定范围内的容器镜像。

*请及时关注本次产品变更内容,以免影响您的后续使用。如您有任何问题,可随时通过工单或者服务热线与我们联系。

最后一行不能正常读取

发现总是最后一个镜像不能正常推送,建议修改一下循环读取的条件为:

while IFS= read -r line || [ -n "$line" ]; do

确保最后一行能正确读取

能否增加自定义名称?

例如镜像名称
daprio/dashboard:0.14.0

推送到阿里云 显示的是 dashboard,这样不好,我想自定义一下 可否做到?
例如
docker.io/daprio/dashboard:0.14.0 --name daprio-dashboard:0.14

有没办法 不改前变成改后尾部

拉取多架构时把linux_amd64_redis 和 linux_arm_v7_redis 这种加在前排的 变成 redis:latest_amd64 和 redis:latest_arm64 redis:latest_armv7 能不能变成这种形式 前面不变 前面改变的话会多出口来很多镜像 不能放在一起了

提交时检测是否有更新

定时执行时每次都会强制拉取更新
能否检测阿里云的镜像和源镜像是否一致,不同才更新呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.