docker / buildx

Docker CLI plugin for extended build capabilities with BuildKit
Apache License 2.0
3.45k stars 466 forks source link

buildx silently does not generate the image #1754

Closed nixilb closed 1 year ago

nixilb commented 1 year ago

Contributing guidelines

I've found a bug and checked that ...

Description

When using

docker buildx build . --progress plain --platform=linux/amd64,linux/arm64,linux/arm/v7 -t 6v005815.gra5.container-registry.ovh.net/nis/nodered-git-login:3.0.2_multi3 --output=type=registry

There is an empty image (0b) added in the registry.

The image is Ok when added in the local Docker using --load.

Buildx version

github.com/docker/buildx v0.10.4 c513d34049e499c53468deac6c4267ee72948f02

Docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.10.4)
  compose: Docker Compose (Docker Inc., v2.17.2)
  dev: Docker Dev Environments (Docker Inc., v0.1.0)
  extension: Manages Docker extensions (Docker Inc., v0.2.19)
  init: Creates Docker-related starter files for your project (Docker Inc., v0.1.0-beta.2)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.25.0)
  scout: Command line tool for Docker Scout (Docker Inc., v0.9.0)

Server:
 Containers: 2
  Running: 1
  Paused: 0
  Stopped: 1
 Images: 2
 Server Version: 20.10.24
 Storage Driver: overlay2
  Backing Filesystem: extfs
  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: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2456e983eb9e37e47538f59ea18f2043c9a73640
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 6.109GiB
 Name: docker-desktop
 ID: MZQH:ESBR:EOC4:Z47E:HFOB:VNJ4:ZQ3D:GO5A:C4IG:FAN7:WZHB:AAOI
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 50
  Goroutines: 57
  System Time: 2023-04-22T23:00:33.7112518Z
  EventsListeners: 9
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support

Builders list

NAME/NODE       DRIVER/ENDPOINT                STATUS   BUILDKIT PLATFORMS
mybuilder       docker-container
  mybuilder0    npipe:////./pipe/docker_engine inactive
mybuilder2 *    docker-container
  mybuilder20   npipe:////./pipe/docker_engine running  v0.11.5  linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
default         docker
  default       default                        running  20.10.24 linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
desktop-linux   docker
  desktop-linux desktop-linux                  running  20.10.24 linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
### Configuration

FROM nodered/node-red:3.0.2

#### if additional modules
# COPY package.json .
# RUN npm install --only=production

COPY settings.js /data/settings.js

# COPY flows_cred.json /data/flows_cred.json
COPY flows.json /data/flows.json

# Start the container normally
CMD ["npm", "start"]
nixilb commented 1 year ago

Registry problem.