You searched for the version tag in the official repository, but rokago used jenkins/jenkins
, the OSS repository.
https://hub.docker.com/r/jenkins/jenkins/tags?page=1&name=2.386
The repo works well for me, I could even pull v2.394, but my Docker version is newer, not the old 18.02-ce. Since I tried on macOS from Docker Desktop.
Using hub-tool to compare the images I can see that the new image has different format:
hub-tool tag inspect jenkins/jenkins:2.386 --format json
{
"schemaVersion": 2,
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:525e788d8da728a26b92673a684e46f890d0bb72973e98cac0573768cfd5f4f2",
"size": 3040,
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:5f05b0783dba5aaed99b61eabc28a53275cacb3a1e9dbd8b1863a91b6efa5b9e",
"size": 3040,
"platform": {
"architecture": "arm64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:4cea9185a270851fe12821b945ead1bd57670962331c541a5c60b1b3ebdbdb30",
"size": 3040,
"platform": {
"architecture": "s390x",
"os": "linux"
}
}
]
}
hub-tool tag inspect jenkins/jenkins:2.394 --format json
{
"schemaVersion": 2,
"manifests": [
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:26fea149258abd3f0f166da9ba519e46b496147b557842c3cdcb68fb10a512a5",
"size": 2765,
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:13b55bfcd41f747ebf69dd7d563fc769bcde3cc73c353ab3c4be8b6d78fdfe9d",
"size": 2765,
"platform": {
"architecture": "arm64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:65656e932cf369b8c8d6682faaeaaf1d02374d13c76ed07b60dd9f439c6c433f",
"size": 2765,
"platform": {
"architecture": "s390x",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:a8bceebb329de38fa9347a84a9b1368b8495913de61285be263a13485e55d9ec",
"size": 566,
"annotations": {
"vnd.docker.reference.digest": "sha256:26fea149258abd3f0f166da9ba519e46b496147b557842c3cdcb68fb10a512a5",
"vnd.docker.reference.type": "attestation-manifest"
},
"platform": {
"architecture": "unknown",
"os": "unknown"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:534152911372ae3004cc63db33480dc064791d37a95b668d8f5b07f512a1abbf",
"size": 566,
"annotations": {
"vnd.docker.reference.digest": "sha256:13b55bfcd41f747ebf69dd7d563fc769bcde3cc73c353ab3c4be8b6d78fdfe9d",
"vnd.docker.reference.type": "attestation-manifest"
},
"platform": {
"architecture": "unknown",
"os": "unknown"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:0a7557f0945fe864ebd8f592e24c42240ac6df2061986939d6bbdd386a76a85a",
"size": 566,
"annotations": {
"vnd.docker.reference.digest": "sha256:65656e932cf369b8c8d6682faaeaaf1d02374d13c76ed07b60dd9f439c6c433f",
"vnd.docker.reference.type": "attestation-manifest"
},
"platform": {
"architecture": "unknown",
"os": "unknown"
}
}
]
}
So 2.394 is: application/vnd.oci.image.manifest.v1+json
but 2.386 is application/vnd.docker.distribution.manifest.v2+json
Docker 18.02 was probably not compatible with the the OCI image manifest If it is the case, the solution is to upgrade Docker to a more recent version.