Docker push でdenied: requested access to the resource is deniedが出る

Docker Hubのレポジトリにimageをpushしようとしたらdenied: requested access to the resource is deniedが出てpushできなかった

$ docker push レポジトリ名:タグ名
The push refers to repository [docker.io/レポジトリ名]
23cc12b64d57: Preparing 
f55aa0bd26b8: Preparing 
1d0dfb259f6a: Preparing 
21ec61b65b20: Preparing 
43c67172d1d1: Preparing 
denied: requested access to the resource is denied

試したことや解決結果

  • imagesで確認したら名前がレポジトリ名と行っていた(typo)
  • 以下のissueのようなことを試していた...docker loginし直したり github.com