Viewing Docker containers via ssh in Docker Desktop

Hi

I recently started up an Ubuntu server, and installed the Ubuntu GUI on it to make initial setup easier. In addition, I installed docker desktop. I put some images on there, and ran them and everything seems to be running fine. However, I would also like to be able to manage my docker images by ssh-ing to the server, but when I do so, and run sudo docker ps -a, I don’t see those images at all.

How do I view images that are visible in Docker Desktop GUI, by ssh? Is this possible?

Docker Desktop runs as your users. So you have to use the docker commands as your user, which typically is not root. So don’t prefix the commands with sudo and it should work.