Replace this template with your information
As the manual on gitlab it describes how to build image and push to repository
docker build -t gitlab.example.com:5050/group/app .
this command works fine, I am building the image
But the problem is with pushing the image to repository
docker push gitlab.example.com:5050/group/app
- What are you seeing, and how does that differ from what you expect to see?
Using default tag: latest
The push refers to repository [gitlab.example.com:5050/group/app]
Get “https://gitlab.example.com:5050/v2/”: dial tcp xx.xx.xx.xx:5050: connect: connection refused
- What version are you on? Are you using self-managed or GitLab.com?
- GitLab (Hint:
/help
): - Runner (Hint:
/admin/runners
):
- GitLab (Hint:
I am using self-managed self-hosted Gitlab and the latest version
Describe your question in as much detail as possible:
Wha dose this error means that the /v2 Service is Unavailable? I cant push the image to the remote repository.
- Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml)
Docker file:
FROM adoptopenjdk/openjdk11:alpine-slim
MAINTAINER myemail@gmail.com
COPY target/app.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
- What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
running command docker images show the image is create and listed