Is there a way to view the copyright file of a deb package downloaded from `download.docker.com`?

sudo apt update && sudo apt upgrade -y
sudo apt-get remove docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc
cd /tmp/
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
  • There doesn’t seem to be a file like copyright in download.docker.com to mark LICENSE? Or can I simply understand the files in the entire repository of download.docker.com as Apache-2.0 LICENSE, and then the copyright is Docker, Inc?

You can find the license in the documentation

Licensing

The Docker Engine is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

I don’t know about the individal files, but Docker CE (Docker Engine) is free and open source and the Apache 2.0 license is mentioned right in the documentation of the installation guide.

1 Like