akka-guide icon indicating copy to clipboard operation
akka-guide copied to clipboard

Provide info for using Docker Hub as a container registry

Open mckeeh3 opened this issue 4 years ago • 2 comments

Short description

Add some info about using Docker Hub in the

Details

In section 7.1. Build Docker image, add some guidance for using Docker Hub vs AWS Container Registry.

On page https://developer.lightbend.com/docs/akka-platform-guide/microservices-tutorial/grpc-service.html#_build_docker_image

mckeeh3 avatar Feb 04 '21 18:02 mckeeh3

We prefer the ECR because most real apps till be private and then you don't have to be concerned with authentication from inside EKS.

That said, we could have a how-to or some note about Docker Hub. The way I have used it is with:

mvn -DskipTests -Ddocker.username=patriknw -Ddocker.registry=docker.io/patriknw -Ddocker.password=$DOCKER_PWD clean package docker:push

There are other (better) authentication methods described in http://dmp.fabric8.io/#authentication

patriknw avatar Feb 05 '21 12:02 patriknw

Agree that for real projects ECR is better. However, many developers using the guide will just be taking a look. I know from my past experience the use of container repos has been a major hassle, in some cases resulting in significant frustration and lost hours trying to get it to work. This is one area where developers that are new to K8 and repos will run into trouble.

mckeeh3 avatar Feb 08 '21 17:02 mckeeh3