Skip to content

Using non-k3d localhost:5000 registry #828

Answered by iwilltry42
eaepstein asked this question in Q&A
Discussion options

You must be logged in to vote

@eaepstein , sorry I just got to revisit this today and finally play it through (before I was mostly on my phone typing).
My fault that the last try didn't work. I actually forgot to put the port as part of the mirror identifier in the registries.yaml.
I fixed it in my previous comment: #763 (comment)
I just followed all your steps and it works like this:

# 1. Create registry
$ docker run -d --restart=always -p 5000:5000 --name registry registry:2
# ...

# 2. Import an image into that registry
$ docker pull alpine:latest
# ...

$ docker tag alpine:latest localhost:5000/alpine:local
# ...

$ docker push localhost:5000/alpine:local
# ...

# 3. Create registries.yaml file:
$ cat << EOF > /tm…

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by iwilltry42
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working component/registry k3d manged registry DONE Issue solved, but not closed yet, due to pending release
5 participants
Converted from issue

This discussion was converted from issue #763 on October 27, 2021 18:24.