PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchMost Docker installation failures on a Linux VPS happen during apt update, before Docker is installed. The usual cause is a missing, unreadable, or incorrectly referenced Docker repository signing key. Fix the repository first, remove conflicting distribution packages, then verify the daemon and your socket permissions in that order.
Antihost offers VPS plans with one-click Docker, NVMe storage and a 14-day free trial.
This guide covers Ubuntu and Debian-style VPS systems, including Ubuntu 22.04 (codename jammy), Ubuntu 24.04 (codename noble), Raspberry Pi OS Bookworm, standard rootful Docker, rootless Docker, and containers that mount the host Docker socket.
As an Amazon Associate I earn from qualifying purchases.
Use this diagnostic order first
Do not repeatedly reinstall packages until you know which layer failed. Docker has four separate layers: the APT repository, the installed packages, the dockerd service, and access to the Unix socket. The command that fails tells you which layer to repair.
| What you see | Likely layer | First action |
|---|---|---|
apt update reports a GPG, NO_PUBKEY, or unsigned-repository error |
Repository key or source entry | Check the release codename, keyring file, and Signed-By path. |
| Packages will not configure, or Docker commands conflict with another package | Unofficial distribution packages | Remove packages such as docker.io and docker-compose, then install the official Engine packages. |
Cannot connect to the Docker daemon |
Daemon service | Run systemctl status docker, start it, and inspect its journal. |
permission denied while trying to connect to the Docker daemon socket |
User or socket permissions | Add your login to the docker group and create a fresh login session. |
| A rootless container fails with a dbus or cgroup connection reset | Rootless user session | Check whether the user dbus service is active. |
A process inside a container cannot open /var/run/docker.sock |
Container user and group-ID mapping | Inspect permissions inside the container; changing the host user’s groups may not affect it. |
1. Confirm the VPS release and inspect the Docker source
Repository entries are release-specific. A source configured for jammy on an Ubuntu 24.04 host (noble) can fail even when the key itself is valid. Identify the codename before changing files:
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
. /etc/os-release
printf '%sn' "$VERSION_CODENAME"
On Ubuntu 22.04 the expected value is jammy; on Ubuntu 24.04 it is noble. If VERSION_CODENAME is empty, inspect /etc/os-release and identify the release by its VERSION_ID instead of guessing.
Find every Docker-related source and the keyring it references:
Recommended Free Tools
grep -RniE 'docker|signed-by|suite|components' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null
Modern installations normally keep the key under /etc/apt/keyrings/docker.asc and use a deb822 .sources file whose Signed-By field points to that exact file. An older .list entry may still work, but it must reference the same readable keyring. Remove or disable duplicate Docker entries; two entries for different codenames or different keyrings can produce confusing errors.
2. Repair GPG and repository-key errors
Why the error appears during apt update
APT verifies repository metadata when it runs apt update. Therefore a missing key is normally reported at update time, not when you later run apt install docker-ce. Messages such as NO_PUBKEY, “The following signatures couldn’t be verified,” or “repository is not signed” indicate that verification stopped before package installation began.
A forum report cites key ID 7EA0A9C3F273FCD8 in one such error, but key IDs and distribution instructions can change. Treat the ID as a diagnostic clue, not as a key to paste into an old command.
Check that the key file exists and is readable
sudo ls -l /etc/apt/keyrings/docker.asc
sudo file /etc/apt/keyrings/docker.asc
sudo gpg --show-keys /etc/apt/keyrings/docker.asc
The file should be present, readable by APT, and recognized as an OpenPGP public key. If gpg reports that the file is not a key, or the file contains an HTML error page, download the current public key again from Docker’s official Ubuntu installation instructions. Do not reuse a file that was saved from a failed redirect or a web error.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Make the directory and key readable without making them writable by every user:
sudo install -m 0755 -d /etc/apt/keyrings
sudo chmod 0644 /etc/apt/keyrings/docker.asc
When recreating the key, use the current command and key location documented by Docker rather than an unmaintained blog. The exact key URL and command are deliberately not repeated here because they can change; the important requirement is that the source entry’s Signed-By value names the file you actually downloaded.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Check the source’s Signed-By and codename
Open the Docker source file and compare three values with the host: the repository suite (for example, jammy or noble), the architecture, and the keyring path. In a deb822 file, the key association appears as a line such as:
Signed-By: /etc/apt/keyrings/docker.asc
The path is case-sensitive. A key at /etc/apt/keyrings/docker.asc does not satisfy an entry pointing to /usr/share/keyrings/docker-archive-keyring.gpg. Correct the source by copying the current stanza from Docker’s installation documentation, then run:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
sudo apt update
Do not proceed until this command completes without a Docker signature error. If the same error remains, delete the stale key file, download a fresh copy using the current instructions, confirm its type with gpg --show-keys, and check for a second Docker source that still points at the old key.
Raspberry Pi OS Bookworm
On Raspberry Pi OS Bookworm, a reported failure was caused by a key file that was not a readable public key. Re-downloading the key fixed verification. The same checks apply: inspect the file type, ensure APT can read it, and make sure the source entry points to that file. Do not assume a key copied from another host is valid for the current installation.
Do not use deprecated apt-key recipes
apt-key is deprecated. It places trust more broadly than a repository-specific keyring and makes later auditing harder. Use a keyring under /etc/apt/keyrings with an explicit Signed-By reference instead.
3. Remove packages that conflict with the official Engine
Ubuntu and Debian repositories may provide packages named docker.io and docker-compose. They are not the same package set as Docker’s official Engine repository. Mixing them can leave different client, daemon, container-runtime, or Compose versions installed together.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsBefore reinstalling the official packages, remove the conflicting packages that are present:
sudo apt remove docker.io docker-compose
If APT says a package is not installed, that is harmless. List related packages before making further changes:
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
dpkg -l | grep -E 'docker|containerd|runc'
Read the removal plan before accepting it. Do not remove unrelated applications merely because their names contain a similar word. Removing a package does not automatically erase images, containers, or volumes, but you should still record any production workload and back up data before changing a live VPS.
After the conflicting packages are gone and apt update succeeds, follow the current Docker instructions for your release to install the official Engine package set. Installing again before fixing the source or package conflict usually reproduces the same failure.
4. Check whether the Docker daemon is running
A successful package installation does not prove that the daemon is active. Check the service and the socket separately:
systemctl status docker
ls -la /var/run/docker.sock
A running service normally creates /var/run/docker.sock (often the same socket as /run/docker.sock). If the service is inactive, start it:
sudo systemctl start docker
On Debian and Ubuntu, Docker is normally configured to start at boot by the package installation. If starting it fails, do not keep retrying blindly. Read the service journal:
sudo journalctl -u docker --no-pager -n 100
Look for the first concrete error, such as an invalid daemon configuration, a storage-driver failure, a missing runtime, or a permission problem. Later messages often only report that startup was aborted. Correct the first error, then start Docker again and recheck systemctl status docker.
If the service is active but the socket is absent, inspect the journal and the service definition rather than changing socket permissions at random. If the socket exists but a client still cannot connect, continue to the user-permission section.
5. Prove the installation with a test container
Once the daemon is active, test it as root first. This separates daemon and network problems from ordinary user-group problems:
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
sudo docker run hello-world
The command should contact the registry, pull the small hello-world image if it is not cached, create a container, print its confirmation message, and exit. A registry timeout, DNS failure, or proxy error is a network-path problem; it is not fixed by adding yourself to the Docker group. Resolve that separately, then rerun the test.
6. Fix “permission denied while trying to connect to the Docker daemon socket”
The Docker client normally connects through a Unix socket owned by root and the docker group. If your login is not a member of that group, the daemon can be healthy while an unprivileged command fails.
Add the login to the group
- Create the group if the distribution did not create it. The command is harmless when the group already exists:
sudo groupadd docker - Add the current login, preserving its existing supplementary groups:
sudo usermod -aG docker $USER - Start a new login session. Log out of SSH completely and reconnect, or apply the new group in the current shell with:
newgrp docker - Confirm membership and retry without
sudo:id docker run hello-world
Opening another terminal window is not always sufficient. Existing processes retain the group credentials they received when they started, which is why a full logout/login or newgrp docker is required.
Check the socket before changing anything
ls -l /var/run/docker.sock
The group shown for the socket should normally be docker. If it is owned by an unexpected group, inspect the service and packaging rather than immediately making the socket world-writable.
Why chmod 666 is a bad fix
Do not use sudo chmod 666 /var/run/docker.sock as a routine solution. It allows every local user to write to the Docker API. Anyone who can control that API can generally start privileged containers, mount host filesystems, and obtain root-equivalent control of the VPS.
Free tools Windows power users keep installed
One-click scans. No signup required.
The docker group is safer than world-writable permissions because access is limited to explicitly added users, but membership itself still grants root-level power. For stronger isolation, use rootless Docker or place Docker inside a separate virtual machine when your workload permits it. Some administrative guides suggest restoring ownership with sudo chown root:docker /var/run/docker.sock; verify the service recreates the socket with the same ownership before relying on a manual change.
7. Repair ~/.docker files created by sudo
A different permission error can appear after you previously ran Docker with sudo. The directory ~/.docker or its config.json may then belong to root, preventing your normal account from reading credentials or writing client settings.
Repair the directory ownership and permissions:
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
If you do not need the saved Docker client configuration, removing ~/.docker/ also clears the problem, but it discards custom settings and stored registry credentials. Reauthenticate only after confirming that the directory is owned by your normal account.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
8. Ubuntu 24.04 and later: rootless Docker edge cases
Rootless Docker runs the daemon and containers without a root-owned system daemon. Ubuntu 24.04 and later restrict unprivileged user namespaces by default, so a rootless setup can fail unless an appropriate AppArmor profile allows the required namespace operations. A rootful installation working normally does not prove that a rootless installation is permitted by the host policy.
When rootless docker run reports a dbus or systemd connection reset on a cgroup v2 host, check the user dbus service:
systemctl --user is-active dbus
If it is not active, restore the user’s dbus session according to the VPS distribution’s systemd configuration, then retry the rootless command. Keep rootless troubleshooting separate from ordinary socket-group troubleshooting: rootless Docker uses a user-scoped daemon and socket, so changing /var/run/docker.sock may have no effect.
9. Containers that mount the host Docker socket
CI runners and administration containers sometimes mount the host socket into the container. A process inside that container can receive “permission denied” even when the host user can run Docker successfully.
Check the socket and identity from inside the container:
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →ls -l /var/run/docker.sock
id
The container’s effective UID and group IDs must be able to access the mounted socket. Adding the VPS login to the host’s docker group does not automatically add the container’s user to a matching group. Correct the container image, its runtime group configuration, or the deployment’s socket-mount strategy. Remember that granting socket access gives the container effectively root-level control of the host, so expose the socket only to trusted workloads.
10. A complete recovery runbook
Use this sequence when an installation is in an unknown state:
Quick Recap
- Identify the release codename from
/etc/os-release. - Inspect Docker source files and ensure the suite matches the release.
- Ensure the key at
/etc/apt/keyrings/docker.ascis a readable public key and that the source’sSigned-Byfield points to it. - Run
sudo apt update. Stop and repair any GPG error before installing packages. - Remove installed unofficial packages such as
docker.ioanddocker-compose. - Install the current official Docker Engine packages for the VPS release.
- Run
systemctl status docker; if inactive, runsudo systemctl start docker. - If startup fails, read
sudo journalctl -u docker --no-pager -n 100and fix the first reported cause. - Validate the daemon with
sudo docker run hello-world. - Add your login to the
dockergroup, start a fresh session, and rundocker run hello-worldwithoutsudo. - If the normal account still fails, repair ownership of
~/.dockerand recheck the socket’s group. - For rootless or socket-mounted-container failures, use the separate checks in the preceding sections instead of changing the rootful socket.
Common mistakes that prolong the outage
- Installing before running
apt updatesuccessfully: package installation cannot fix a repository signature that APT has already rejected. - Using the wrong codename: verify
jammyversusnoblefrom the host itself. - Keeping duplicate source files: an old entry can continue to reference a missing key after you corrected the new entry.
- Copying a key file without checking its contents: a downloaded HTML error page is not a public key.
- Opening a new terminal instead of starting a new session: existing processes may still lack the new group credentials.
- Making the socket world-writable:
chmod 666trades a local convenience for root-equivalent access by every local user. - Changing host permissions for a container failure: the process inside the container has its own UID and group IDs.
- Mixing rootful and rootless instructions: they use different daemons, sockets, and service scopes.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




