tezvyn:

Tag and push an image to a private registry

Source: interviewbeginner

WHAT IT TESTS: tag-and-push workflow plus registry auth. OUTLINE: authenticate with docker login, retag the image to include the registry host and repo path, then docker push that full reference.

WHAT IT TESTS: whether you understand that an image reference encodes its destination registry and that pushing requires authentication. ANSWER OUTLINE: log in to the registry, for ECR using the helper that pipes a token into docker login; retag the local image with docker tag so its name includes the full registry host and repository path plus a version tag; then docker push that exact reference. RED FLAG: pushing the short local name, which targets Docker Hub, or forgetting to authenticate first.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Tag and push an image to a private registry · Tezvyn