Skip to content

Switch to docker.sources #3942

Closed
Closed

Description

@a-v-popov

Currently netlab install containerlab creates docker.list here

echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$DISTRIBUTION $(lsb_release -cs) stable" | $SUDO tee /etc/apt/sources.list.d/docker.list > /dev/null

Which make apt to complain on 26.04:

Notice: Some sources can be modernized. Run 'apt modernize-sources' to do so.

The official docker ubuntu install page says to use docker.sources instead
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

# Add Docker's official GPG key:
sudo apt update
sudo apt 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

# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update

and it claims to be applicable to:

Ubuntu Resolute 26.04 (LTS)
Ubuntu Noble 24.04 (LTS)
Ubuntu Jammy 22.04 (LTS)
https://docs.docker.com/engine/install/ubuntu/#os-requirements

Activity

  1. ipspace commented on Oct 11, 2026

    @ipspace
    Owner

    Thank you! Please submit the changes you documented as a PR, and I'll test it on the three Ubuntu versions we support and merge it.

  2. added a commit that references this issue on Oct 13, 2026
    e8c8307
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions