登陆
aws ecr get-login
可能报错InvalidSignatureException,原因是时间不一致问题
An error occurred (SignatureDoesNotMatch) when calling the DescribeStacks operation: Signature expired: 20200907T233751Z is now earlier than 20200910T054015Z (20200910T054515Z - 5 min.)
date //可能发现是EDT时区(美国东部夏令时间)
//修改成 CST(北京时间凌晨)
mv /etc/localtime /etc/localtime.bakln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtimedate //会发现已经是北京时间//修改时间date -s "Fri Sep 6 14:16:54 CST 2019"
//再次登陆
aws ecr get-login
