Score:-3

How to install Docker on Debian without adding repositories?

cn flag

As I understand, docker is open source and should be available through the main debian Repositories, but all the guides I have found ask you to install a third party software source, mainly docker.com. What's the process of natively installing docker on debian? docker-compose support would also be nice.

To clarify, I do not want to add a third-party licensing liability to my Apt sources. I am okay with an older but security patched version of Docker that doesn't support the latest Dockerfile features.

co flag
Adding another source to your debian repositories doesn't change the licensing, it's Apache 2.0 no matter how you install it. Security updates to the debian repos will almost always lag the updates to the docker repos.
Ray Foss avatar
cn flag
@BMitch You're right that Docker engine is **currently** Apache 2, but they can at their discretion change that... the Debian main repository tries to guarantee unrestricted licenses... other repositories don't typically make that guarantee. Docker Inc has been changing licenses around it's products very recently... currently the changes don't affect Docker engine... **currently**. https://www.docker.com/blog/updating-product-subscriptions/ lol at the kb's vote ratio feature at the bottom of that page
co flag
Docker hasn't changed any licenses, what was OSS before is still OSS today. What they changed was the terms on the closed source Desktop product. I'm not even sure they can change the license on an Apache 2 project once they accepted public contributions.
Score:1
cn flag

docker.io is the open source version of docker/containerd in the Debian sid repository.

For just docker: sudo apt-get install docker.io

If you need docker-compose, you can get it from the unstable repository or install it from git, it's just a few python scripts so it's easy to install from source.

docker-compose https://docs.linuxserver.io/general/docker-compose

Source: https://packages.debian.org/source/sid/docker.io
Tested on Ubuntu 20.04 amd64 and Ubuntu 21.10 arm64

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.