How to Install Docker on Debian 13 Trixie?

0
46
Asked By TechyNinja26 On

I'm running Proxmox and recently upgraded my Debian 12 container, but it caused issues with a program called Immich. So, I created a new container with Debian 13, but I'm having trouble installing Docker. When I run the command to install Docker, I get several errors indicating that the packages are not available or can't be located. Can anyone guide me on how to successfully install Docker on Debian 13? Thanks in advance!

4 Answers

Answered By ProxmoxWizard On

Since you're using Proxmox, keep in mind that it's often better to use QEMU/KVM VMs for running Docker. If you're opting for an LXC container, be aware that changes to your configuration (like cgroups and AppArmor settings) might be necessary to get Docker working in an unprivileged LXC. There are solutions to these issues on the Proxmox forums, or it might just be easier to go with a VM instead. The Docker documentation has great instructions for installation, and there's a convenience script that could help if you're not worried about using `curl | bash`.

Answered By GistGuru01 On

You can follow the steps provided in the GitHub Gist linked here for a straightforward guide to installation: [My Docker Swarm Architecture · GitHub](https://gist.github.com/scyto/f4624361c4e8c3be2aad9b3f0073c7f9). You can skip the swarm-related info if you want. Some people have doubts about using the Docker install script, but honestly, if you don't trust that script, you shouldn’t trust Docker's packages at all! Also, if you need to get the Immich container running afterward, refer back to the Immich instructions since there could be community-specific advice that might help you out! And make sure to share commands in code blocks for clarity!

Answered By CodeJunkie42 On

To install Docker on your Debian 13 container, you'll need to add Docker's official GPG key first. Run these commands:

1. `sudo apt update`
2. `sudo apt install ca-certificates curl`
3. `sudo install -m 0755 -d /etc/apt/keyrings`
4. `sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc`
5. `sudo chmod a+r /etc/apt/keyrings/docker.asc`

Next, add the Docker repository to your Apt sources:

```bash
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
```

Once that's done, run `sudo apt update` and then you can install Docker using:
`sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin`

LinuxLover99 -

After setting up the repository, you should be able to install Docker by running that command. It works pretty smoothly!

Answered By PodmanFan88 On

I found the install script from Docker’s website works like a charm for me. Alternatively, you might consider using Podman instead and simply alias it. Podman is often seen as a more robust option compared to Docker, and it might serve you better in the long run!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.