I am trying to deploy a docker configuration with images on a private docker registry.
Now, every time I execute docker login registry.example.com, I get the
docker login registry.example.com
What helped me on Ubuntu 18.04 was:
sudo apt-get install docker
sudo docker login