Oct 26, 2018

How to fix: unauthorized: access to the requested resource is not authorized for docker commands

If you encounter:

$ docker push i88ca/docker-whale
The push refers to a repository [docker.io/i88ca/docker-whale] (len: 1)
df7447c850e6: Buffering to Disk 
unauthorized: access to the requested resource is not authorized

The solution is to run "docker login" before the command:
$ docker login
Username: i88ca
Password: 
Email: abc@i88.ca
WARNING: login credentials saved in /home/i88ca/.docker/config.json

Login Succeeded