Closed johnbizokk closed 5 years ago
Hello @johnbizokk thank you for filling this issue. That's a weird behavior you have here, as we have integration tests against private registry. We have to reproduce this bug and then maybe ask you more context.
@johnbizokk just re-read your issue, trying to reproduce it. I see that step 3
you are pushing the bundle using docker push
instead of docker-app-linux push
. Can you try with this command and check there is no error?
@silvin-lubecki Sorry for the long response. With the command, that you provided in the previous message - the application bundle successfully pushed the private registry and can be installed without any problems. The only thing that I have got is the warning in the stdout - WARN[0014] reference for unknown type: application/vnd.cnab.config.v1+json
and the followed success message - Successfully pushed bundle to private_registry_fqdn/namespace/repo:tag. Digest is sha256:SHA
.
Also, can you clarify this behavior? Is it desired? As I know - in 19.03 docker app installation will be available as a plugin and can be invoked as docker app command. From my perspective - it can be little confusing for users to run a separate command via CLI - I suggest that the use necessity the following commands could bring users to the confusion - docker push
and docker app push.
Hello @johnbizokk , this warning has been removed lastly with this PR #569
About the docker push
and docker app push
we totally understand your concern. We are figuring how we can offer the best UX, that may take time as it is a difficult matter. Thank you for you feedback by the way 👍
I will now close this issue, feel free to open a new one about the push UX issue if you want to 👍
Description
On the previous week, we tried to migrate to the latest docker app release, but unfortunately, we face a lot of problems. In all the new versions, there is a degradation of product functionality from our perspective (we tried v0.8.0-beta1, v0.8.0-beta2, and also builds from the master branch).
The main problems came from the private registry side - with the latest release we are unable to install docker app bundles from the private Docker registry. We tried to use different (registry:2.7.1 or registry:2.7.0 or distribution/registry:v2.7.0) Docker registry images - but have no success. Also, if we tried to install the bundle locally - all have been working, but from our point of view - the primary bundle purpose has been lost.
Steps to reproduce the issue:
docker-app-linux bundle -t private_registry_fqdn/namespace/repo:tag
docker push private_registry_fqdn/namespace/repo:tag
docker-app-linux install private_registry_fqdn/namespace/repo:tag
Describe the results you received:
Unfortunately, we've got the following error:
Error: private_registry_fqdn/namespace/repo:tag: invalid media type "application/vnd.docker.distribution.manifest.v2+json" for bundle manifest
Describe the results you expected:
We expected from docker app binary correct bundle installation from the private Docker registry (registry:2.7.1).
Output of
docker version
:Output of
docker-app version
:Output of
docker info
:Additional environment details:
We are using the self-hosted private Docker registry with basic auth.