Closed camilamacedo86 closed 1 year ago
By checking the code used to build the images (see here ) we can:
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
apt-cache madison 'docker-ce-cli'
is not returning the value. Reading package lists... Done
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
root@4a0f3bee93c8:/# mkdir -p /packages/archives
root@4a0f3bee93c8:/# apt-get -d -y install --no-install-recommends \
docker-ce-cli=$(apt-cache madison 'docker-ce-cli' | grep 20.10.17 | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3) \
docker-ce=$(apt-cache madison 'docker-ce' | grep grep 20.10.17 | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3) \
-oDebug::NoLocking=1 -o=dir::cache=/packages/
grep: 20.10.17: No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
docker-ce-cli:amd64
E: Unable to locate package docker-ce-cli
E: Version '' for 'docker-ce' was not found
root@4a0f3bee93c8:/#
The solution is proposed into the PR: #3677
By following the contributing guide we should able to run
make build/packages/docker/<docker-version>/ubuntu-<version>
. However, it fails as follows: