Complete the command to log in to a private Docker registry.
docker [1] myregistry.example.comThe docker login command is used to authenticate with a private Docker registry.
Complete the command to pull an image from a private registry after login.
docker [1] myregistry.example.com/myimage:latestThe docker pull command downloads an image from a registry to your local machine.
Fix the error in the command to pull from a private registry by adding the missing option.
docker pull [1]/myimage:latestWhen pulling from a private registry, you must specify the registry URL before the image name.
Fill both blanks to create a Docker config file path and command to use it for authentication.
docker --config [1] [2] myregistry.example.com
The --config option points to the Docker config directory, and login authenticates to the registry.
Fill the blanks to create a command that logs in with username and password from environment variables.
echo $[1] | docker login myregistry.example.com -u $[2] --password-stdin
This command uses the environment variable PASSWORD piped into docker login with username from USERNAME variable.