Using apt in the Official Ubuntu Docker Image

May 20, 2025 1 answer
Asked by billiard cushion
Hey everyone! I'm trying to figure out how to use apt to install "ubuntu-desktop" on the official Ubuntu image I pulled from Docker Hub. However, when I run the "apt update" command, I keep getting a "public key" GPG error. Any advice on how to fix this issue? Thanks!

Answers

between-the-lines
Before diving in, just a quick thoughtโ€”why are you attempting to install 'ubuntu-desktop' in a Docker container? That might be better suited for a virtual machine. Could you share the exact error message you're seeing when you try to run the commands? Sometimes a quick Google search on the error can lead you to a solution.

billiard cushion: I know a VM is an option, but I'm really aiming for a container setup. My plan is to install Ubuntu with a GUI and access it through VNC on a Windows machine.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions