This chapter describes how to obtain a long-term valid docker login command.
The eu-de project corresponds to eu-de, as shown in the following figure.
If the AK/SK is available, you can directly use it.
For the accounts created in Identity and Access Management (IAM), if no email address or mobile phone is filled during account creation, you only need to verify the login password.
Keep the access key confidential to prevent information leakage.
printf "$AK" | openssl dgst -binary -sha256 -hmac "$SK" | od -An -vtx1 | sed 's/[ \n]//g' | sed 'N;s/\n//'
In the preceding information, $AK and $SK respectively indicate the AK and SK obtained in 2.
docker login -u [Name of the regional project]@[AK] -p [Login key] [Image repository address]
docker login -u eu-de@kwb1******5IdAD -p 7ca3582173f52caa98fcf87389e9cc26d007a2e4b2f6231006a301568f2e1ef8 10.158.24.86