Skip to content

Resolve the local cluster container registry without needing a port? #698

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

You must be logged in to vote

Hi @neezer , thanks for starting this discussion!

Is there any way to enable this workflow without using ports in the docker image tag?

Unfortunately not, as in the end, it's plain old networking and as long as it's not a standard port (like 80 for http or 443 for https), you'll have to specify a port (or setup some fancy proxy setup) 🤔

I have to get the port for my registry using docker ps -f name=k3d-mycluster-registry

This part I'd like to make a bit more convenient, by including the port in the log output at least.

Is there any way to make the host port mapping static instead of random?

Yep, create the registry standalone (i.e. not with --registry-create which is intentionally s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@neezer
Comment options

Answer selected by neezer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants