Why Does the Login Command Fail to Be Executed?
Possible causes are as follows:
- The container engine is not properly installed, in which case the following error is reported:
Solution: Reinstall the container engine. For details, see Installing a Container Engine.
- It is advised to install container engine 1.11.2 or later because earlier versions do not support image push to SWR.
- If the container engine client is in a private network, bind an elastic IP address (EIP) to the client. This EIP will allow the client to download installation packages from the website.
- The temporary login command has expired, or the regional project name, access key (AK), or login key in the command is incorrect, in which case the following error is reported:
Solution: Log in to the SWR console. In the navigation pane on the left, choose My Images. On the page displayed, click Upload Through Client. Then you can find the information on how to obtain a login command.
- To obtain a temporary login command, click Generate a temporary login command and then click
to copy the command. - To obtain a long-term valid login command, click learn how to obtain a login command that has long-term validity. For details, see Obtaining a Long-Term Valid Login Command and follow the guidelines.
- To obtain a temporary login command, click Generate a temporary login command and then click
- The image repository address in the login command is incorrect, in which case the following error is reported:
Solutions:
- Correct the image repository address in the login command. The format of the address should be swr.regional project name.myhuaweicloud.com, for example, swr.cn-north-1.myhuaweicloud.com. To obtain the regional project name, go to the My Credentials page. On the Projects tab page, you can find the project name corresponding to your current region.
- Generate a temporary login command. For detailed instructions, see 2.



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.