It is possible to run more than one docker engine in linux. To see them run the command
docker context ls
Most likely it will show 2 results 'default' & 'desktop-linux'
docker context use desktop-linux
will change the engine to the one used by Docker Desktop and the images will then be the same in the terminal.