I try to run the following command from chapter 6
docker run --name postgres -e POSTGRES_DB=vapor \
-e POSTGRES_USER=vapor -e POSTGRES_PASSWORD=password \
-p 5432:5432 -d postgres
But I get
Unable to find image 'postgres:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/postgres/manifests/latest: unauthorized: incorrect username or password.
See 'docker run --help'.
Docker was just installed, followed the instructions from earlier in the same chapter. I did not try the SQLite or MySQL sections, because I just wanted to focus on the PostgreSQL section.
Solution:
Ok, I figured out a solution to this. I logged out my Docker user, and created a new one. Then it just worked. Tried to log in again with the old user, and got the same error message. So old accounts are not compatible with the latest Docker Desktop I guess…