docker / app

Make your Docker Compose applications reusable, and share them on Docker Hub
Apache License 2.0
1.57k stars 177 forks source link

GitLab Container Registry can't display pushed application packages #605

Closed kinghuang closed 5 years ago

kinghuang commented 5 years ago

Description

Docker App can push and pull app packages to a GitLab project's built-in registry. However, attempting to view the project's registry UI produces an error.

Steps to reproduce the issue:

Given a GitLab project like https://gitlab.com/kinghuang/docker-app-test:

  1. Create a GitLab project (kinghuang/docker-app-test).
  2. Push an app package to the project's registry.
  3. Visit the project's Container Registry page.

Describe the results you received:

The app package should be listed.

Describe the results you expected:

An error occurs.

Screen Shot 2019-09-01 at 12 34 23 PM

Additional information you deem important (e.g. issue happens only occasionally):

A warning is printed during the push, but is otherwise successful.

WARN[0327] reference for unknown type: application/vnd.cnab.config.v1+json 
Successfully pushed bundle to registry.gitlab.com/kinghuang/docker-app-test:latest. Digest is sha256:d7fb549bd57e4fda8889b0541ac864599e29032d84ae2f58cb72c37287c9ae8f.

Output of docker version:

▸ hello-world docker version
Client: Docker Engine - Community
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        74b1e89
 Built:             Thu Jul 25 21:18:17 2019
 OS/Arch:           darwin/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.1
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.5
  Git commit:       74b1e89
  Built:            Thu Jul 25 21:17:52 2019
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          v1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker app version:

▸ hello-world docker app version
Version:               v0.8.0
Git commit:            7eea32b7
Built:                 Thu Jul 25 21:26:00 2019
OS/Arch:               darwin/amd64
Experimental:          off
Renderers:             none
Invocation Base Image: docker/cnab-app-base:v0.8.0

Output of docker info:

▸ hello-world docker info
Client:
 Debug Mode: false
 Plugins:
  app: Docker Application (Docker Inc., v0.8.0)
  buildx: Build with BuildKit (Docker Inc., v0.2.2-10-g3f18b65-tp-docker)

Server:
 Containers: 6
  Running: 0
  Paused: 0
  Stopped: 6
 Images: 243
 Server Version: 19.03.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: active
  NodeID: rineew75woi27hb2syjzb876n
  Is Manager: true
  ClusterID: kiohbbqpj6eqdcmwoauia1mf1
  Managers: 1
  Nodes: 1
  Default Address Pool: 10.0.0.0/8  
  SubnetSize: 24
  Data Path Port: 4789
  Orchestration:
   Task History Retention Limit: 5
  Raft:
   Snapshot Interval: 10000
   Number of Old Snapshots to Retain: 0
   Heartbeat Tick: 1
   Election Tick: 10
  Dispatcher:
   Heartbeat Period: 5 seconds
  CA Configuration:
   Expiry Duration: 3 months
   Force Rotate: 0
  Autolock Managers: false
  Root Rotation In Progress: false
  Node Address: 192.168.65.3
  Manager Addresses:
   192.168.65.3:2377
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.14.131-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 11.7GiB
 Name: docker-desktop
 ID: PF7F:C6RV:ZGE2:2JCZ:KJEA:PSFF:XFVJ:E3ZX:3JTQ:FW45:NAKP:JLTC
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 44
  Goroutines: 157
  System Time: 2019-09-01T18:36:04.114157883Z
  EventsListeners: 2
 HTTP Proxy: gateway.docker.internal:3128
 HTTPS Proxy: gateway.docker.internal:3129
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Additional environment details (AWS, VirtualBox, physical, etc.):

I tried this on both gitlab.com and a privately hosted instance of GitLab EE 12.2.0.

kinghuang commented 5 years ago

I've reported this at gitlab-org/gitlab-ce#66920.

silvin-lubecki commented 5 years ago

Hello @kinghuang, if I understand your issue correctly the push/pull works, but the Gitlab UI is having hard times to show the app? Thank you for opening the issue on the Gitlab issue tracker. Do you think we can close this issue on docker/app, as I don't think it needs any fix?

kinghuang commented 5 years ago

Yeah, this one can probably closed. I originally thought it was like the “Can't push to ECR/GCR” issues, but this may be more on GitLab's side.