Containers not showing up in the Docker Desktop app

Hello,

I recently started learning Jenkins and created my first pipeline containing CI and CD jobs. The CD job contains only the following build step:

docker pull ivos89/student:1.0.0
docker compose -f docker-compose.yml up -d

When both jobs are done, I can see the created container in the terminal:

ivos@lbgg0029:~$ sudo docker ps
CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS                  PORTS                                                 NAMES
8b085ffef8dd   ivos89/student:1.0.0   "docker-entrypoint.s…"   40 minutes ago   Up Less than a second   9090/tcp, 0.0.0.0:9091->9091/tcp, :::9091->9091/tcp   student-cd-app-1

I installed Docker Desktop 4.32.0 (157355) on my Ubuntu 24.04 LTS and logged in to my account but I’m unable to see the above container.

I can only see the image in my hub in Docker Desktop.

Can anyone assist?

Btw, while searching for a possible solution I found out that when running docker context ls, I get different results depending on whether sudo is used.

ivos@lbgg0029:~$ sudo docker context ls
NAME        DESCRIPTION                               DOCKER ENDPOINT               ERROR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock   
ivos@lbgg0029:~$ docker context ls
NAME            DESCRIPTION                               DOCKER ENDPOINT                                 ERROR
default *       Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                     
desktop-linux   Docker Desktop    

Delete Docker CE and keep Docker Desktop or delete Docker Desktop and keep Docker CE. You could switch to Docker DEsktop in the terminal

docker context use desktop-linux

but if you don’t even know you have to kind of Docker installed, you clearly don’t need both. When you use sudo, you will always run the command as root and root has no Docker Desktop installed in its home…

how you uninstall Docker CE depends on how you installed it. Just delete the docker-ce package or the snap package called “docker” or docker.io APT package, whatever you installed.

Hey, @rimelek,

Thank you for your reply.

Currently this is what I have installed on my machine:

ivos@lbgg0029:~$ apt list --installed | grep 'docker'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

docker-buildx-plugin/noble,now 0.16.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 0.16.2-1~ubuntu.24.04~noble]
docker-ce-cli/noble,now 5:27.1.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:27.1.2-1~ubuntu.24.04~noble]
docker-ce-rootless-extras/noble,now 5:27.1.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:27.1.2-1~ubuntu.24.04~noble]
docker-ce/noble,now 5:27.1.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:27.1.2-1~ubuntu.24.04~noble]
docker-compose-plugin/noble,now 2.29.1-1~ubuntu.24.04~noble amd64 [installed]
docker-desktop/now 4.32.0-157355 amd64 [installed,local]

I should remove docker-ce-cli, docker-ce-rootless-extras, and docker-ce. Is that correct?

docker-ce-cli is required. That’s why the installation guide of Docker Desktop asks you to add the APT repository of Docker CE, because it will install docker-ce-cli, but the daemon is inside the virtual machine. So you can delete

  • docker-ce
  • docker-ce-rootless-extras

The rest is for the client side.