88.2k views
3 votes
What is the command to allow you to log in with the specified username to a remote image repository?

A) docker login -u username
B) docker connect -u username
C) docker remote -u username
D) docker auth -u username

User Candiru
by
7.4k points

1 Answer

2 votes

Final answer:

The correct command to log in to a remote image repository in Docker is 'docker login -u username'.

Step-by-step explanation:

The correct command to allow you to log in with the specified username to a remote image repository in Docker is docker login -u username.

For example, if your username is 'johnsmith', the command would be docker login -u johnsmith.

This command prompts you to enter your password after executing it, and once you successfully log in, you can access the remote image repository and perform various Docker operations.

User KickAss
by
7.8k points

No related questions found