Skip to content

When using the build repository, there are multiple private repositories, all of which are http requests, but multiple registries cannot be set #485

@java-xiaojhu

Description

@java-xiaojhu

kind: pipeline
type: kubernetes
name: default
clone:
disable: true
steps:

  • name: clone
    image: 192.168.124.6:8082/drone/git
    commands:
  • name: docker
    image: 192.168.124.6:8082/plugins/docker
    privileged: true
    environment:
    DOCKER_LAUNCH_DEBUG: true
    settings:
    username:
    from_secret: docker_username
    password:
    from_secret: docker_password
    registry: 192.168.124.6:8082
    dockerfile: Dockerfile
    insecure: true
    repo: 192.168.124.6:8084/test/ruoyi-admin
    tags: 1
    cache: true
    when:
    branch: main
    event: [ push ]

FROM 192.168.124.6:8082/library/openjdk:8-jdk-oracle
COPY ./xxxx.jar /app/xxxxx.jar
ENTRYPOINT ["java", "-jar","/app/xxxxxx.jar"]

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

  • /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock --insecure-registry 192.168.124.6:8082
    time="2025-04-08T13:33:40.960054770Z" level=info msg="Starting up"
    time="2025-04-08T13:33:40.962738096Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
    time="2025-04-08T13:33:40.964875998Z" level=info msg="libcontainerd: started new containerd process" pid=44
    time="2025-04-08T13:33:40.964929611Z" level=info msg="parsed scheme: "unix"" module=grpc
    time="2025-04-08T13:33:40.964940476Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc
    time="2025-04-08T13:33:40.965007685Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] }" module=grpc
    time="2025-04-08T13:33:40.965033158Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc
    time="2025-04-08T13:33:40Z" level=warning msg="deprecated version : 1, please switch to version 2"
    time="2025-04-08T13:33:40.985950891Z" level=info msg="starting containerd" revision=3df54a852345ae127d1fa3092b95168e4a88e2f8 version=v1.5.11
    time="2025-04-08T13:33:41.012327721Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1
    time="2025-04-08T13:33:41.012801149Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.022932703Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.aufs"..." error="aufs is not supported (modprobe aufs failed: exit status 1 "ip: can't find device 'aufs'\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n"): skip plugin" type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.022987407Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.023879048Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.btrfs"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (xfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.023920646Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.devmapper"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.023953554Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
    time="2025-04-08T13:33:41.023968706Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.024328700Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.024913633Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.025472444Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.zfs"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
    time="2025-04-08T13:33:41.025512413Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1
    time="2025-04-08T13:33:41.025817827Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
    time="2025-04-08T13:33:41.025831203Z" level=info msg="metadata content store policy set" policy=shared
    time="2025-04-08T13:33:41.028002333Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1
    time="2025-04-08T13:33:41.028051834Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1
    time="2025-04-08T13:33:41.028157027Z" level=info msg="loading plugin "io.containerd.service.v1.introspection-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028221308Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028283420Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028300313Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028323106Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028337618Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028351689Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028367136Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.028385832Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1
    time="2025-04-08T13:33:41.028810858Z" level=info msg="loading plugin "io.containerd.runtime.v2.task"..." type=io.containerd.runtime.v2
    time="2025-04-08T13:33:41.029483509Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1
    time="2025-04-08T13:33:41.029959853Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1
    time="2025-04-08T13:33:41.030070818Z" level=info msg="loading plugin "io.containerd.internal.v1.restart"..." type=io.containerd.internal.v1
    time="2025-04-08T13:33:41.030130721Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030147730Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030161304Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030185397Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030198600Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030211946Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030224366Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030240213Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.030287144Z" level=info msg="loading plugin "io.containerd.internal.v1.opt"..." type=io.containerd.internal.v1
    time="2025-04-08T13:33:41.031239839Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.031351737Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.031371729Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.031384024Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1
    time="2025-04-08T13:33:41.031728488Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
    time="2025-04-08T13:33:41.031939984Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
    time="2025-04-08T13:33:41.032111472Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
    time="2025-04-08T13:33:41.032151248Z" level=info msg="containerd successfully booted in 0.048986s"
    time="2025-04-08T13:33:41.044482610Z" level=info msg="parsed scheme: "unix"" module=grpc
    time="2025-04-08T13:33:41.044526122Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc
    time="2025-04-08T13:33:41.044549970Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] }" module=grpc
    time="2025-04-08T13:33:41.044561701Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc
    time="2025-04-08T13:33:41.046343450Z" level=info msg="parsed scheme: "unix"" module=grpc
    time="2025-04-08T13:33:41.046405958Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc
    time="2025-04-08T13:33:41.046427400Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] }" module=grpc
    time="2025-04-08T13:33:41.046439767Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc
    time="2025-04-08T13:33:41.073745225Z" level=warning msg="Your kernel does not support cgroup blkio weight"
    time="2025-04-08T13:33:41.073797576Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
    time="2025-04-08T13:33:41.074025790Z" level=info msg="Loading containers: start."
    time="2025-04-08T13:33:41.161180297Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
    time="2025-04-08T13:33:41.213550345Z" level=info msg="Loading containers: done."
    time="2025-04-08T13:33:41.232332146Z" level=info msg="Docker daemon" commit=87a90dc graphdriver(s)=overlay2 version=20.10.14
    time="2025-04-08T13:33:41.232867371Z" level=info msg="Daemon has completed initialization"
    time="2025-04-08T13:33:41.266212529Z" level=info msg="API listen on /var/run/docker.sock"
    Detected registry credentials
    time="2025-04-08T13:33:42.034924431Z" level=info msg="Error logging in to endpoint, trying next endpoint" error="Get "https://192.168.124.6:8082/v2/\": http: server gave HTTP response to HTTPS client"
  • /usr/local/bin/docker version
    Client:
    Version: 20.10.14
    API version: 1.41
    Go version: go1.16.15
    Git commit: a224086
    Built: Thu Mar 24 01:45:09 2022
    OS/Arch: linux/amd64
    Context: default
    Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:49:54 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba2
docker-init:
Version: 0.19.0
GitCommit: de40ad0

  • /usr/local/bin/docker info
    Client:
    Context: default
    Debug Mode: false

Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 20.10.14
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc version: v1.0.3-0-gf46b6ba2
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.4.278-1.el7.elrepo.x86_64
Operating System: Alpine Linux v3.15 (containerized)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.6GiB
Name: drone-fmhiuxb7yf9e3p6cf6sq
ID: O4DJ:J3DZ:A7MN:SVBQ:362C:5CZV:O72Q:UJSP:BFTA:QYOP:2HDR:UGDI
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
192.168.124.6:8082
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Successfully built 92083684e044
Successfully tagged xenb1dkct8hsfqce:latest

  • /usr/local/bin/docker tag xenb1dkct8hsfqce 192.168.124.6:8084/test/ruoyi-******:1
  • /usr/local/bin/docker push 192.168.124.6:8084/test/ruoyi-:1
    The push refers to repository [192.168.124.6:8084/test/ruoyi-
    ]
    time="2025-04-08T13:33:50.478693274Z" level=info msg="Attempting next endpoint for push after error: Get "https://192.168.124.6:8084/v2/\": http: server gave HTTP response to HTTPS client"
    Get "https://192.168.124.6:8084/v2/": http: server gave HTTP response to HTTPS client
    exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions