If you get the following error when running 'docker pull':
operator@rp00:~$ docker pull httpd:2.4.65
2.4.65: Pulling from library/httpd
mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'
operator@rp00:~$
I have solved it on Ubuntu 18.04.3 LT by running the following sequence of commands that have not updated the version or build of docker-ce but have installed packages (among them docker-ce-rootless-extras and others) and updated others (containerd.io, docker-ce and libseccomp2) that were apparently required and have solved the problem.
First I executed a:
sudo apt-get update
I then ran the following command which informed me that a number of packages would be installed and updated, and that I accepted the installation:
sudo apt-get install docker-ce --only-upgrade
Output of this command:
operator@rp00:~/dockerfiles/httpd24ghost$ sudo apt-get install docker-ce --only-upgradeReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:apt-clone archdetect-deb aufs-tools cryptsetup-bin dpkg-repack gir1.2-json-1.0 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common libaom0 libavcodec58 libavformat58 libavutil56 libcodec2-0.7libdebian-installer4 libpostproc55 libswresample3 libswscale5 libtimezonemap-data libtimezonemap1 os-prober python3-icu python3-pam rdateUse 'sudo apt autoremove' to remove them.The following additional packages will be installed:containerd.io docker-ce-rootless-extras libseccomp2Recommended packages:slirp4netnsThe following NEW packages will be installed:docker-ce-rootless-extrasThe following packages will be upgraded:containerd.io docker-ce libseccomp23 upgraded, 1 newly installed, 0 to remove and 551 not upgraded.Need to get 43,2 MB of archives.After this operation, 43,3 MB of additional disk space will be used.Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com bionic-updates/main armhf libseccomp2 armhf 2.5.1-1ubuntu1~18.04.2 [40,9 kB]Get:2 https://download.docker.com/linux/ubuntu bionic/stable armhf containerd.io armhf 1.6.21-1 [20,8 MB]Get:3 https://download.docker.com/linux/ubuntu bionic/stable armhf docker-ce armhf 5:24.0.2-1~ubuntu.18.04~bionic [14,3 MB]Get:4 https://download.docker.com/linux/ubuntu bionic/stable armhf docker-ce-rootless-extras armhf 5:24.0.2-1~ubuntu.18.04~bionic [8.092 kB]Fetched 43,2 MB in 18s (2.457 kB/s)(Reading database ... 144367 files and directories currently installed.)Preparing to unpack .../libseccomp2_2.5.1-1ubuntu1~18.04.2_armhf.deb ...Unpacking libseccomp2:armhf (2.5.1-1ubuntu1~18.04.2) over (2.4.1-0ubuntu0.18.04.2) ...Setting up libseccomp2:armhf (2.5.1-1ubuntu1~18.04.2) ...(Reading database ... 144367 files and directories currently installed.)Preparing to unpack .../containerd.io_1.6.21-1_armhf.deb ...Unpacking containerd.io (1.6.21-1) over (1.2.10-3) ...Preparing to unpack .../docker-ce_5%3a24.0.2-1~ubuntu.18.04~bionic_armhf.deb ...Unpacking docker-ce (5:24.0.2-1~ubuntu.18.04~bionic) over (5:19.03.4~3-0~ubuntu-bionic) ...Selecting previously unselected package docker-ce-rootless-extras.Preparing to unpack .../docker-ce-rootless-extras_5%3a24.0.2-1~ubuntu.18.04~bionic_armhf.deb ...Unpacking docker-ce-rootless-extras (5:24.0.2-1~ubuntu.18.04~bionic) ...Setting up containerd.io (1.6.21-1) ...Installing new version of config file /etc/containerd/config.toml ...Setting up docker-ce-rootless-extras (5:24.0.2-1~ubuntu.18.04~bionic) ...Setting up docker-ce (5:24.0.2-1~ubuntu.18.04~bionic) ...Processing triggers for systemd (237-3ubuntu10.31) ...Processing triggers for man-db (2.8.3-2ubuntu0.1) ...Processing triggers for libc-bin (2.27-3ubuntu1) ...operator@rp00:~/dockerfiles/httpd24ghost$
The version and build of Docker that I had and that I maintain is the following:
operatordocker@rp01:~/dockerfiles/httpd24ghost$ docker -v
Docker version 19.03.4, build 9013bf5
And when I run 'docker pull' it works now:
operator@rp00:~/dockerfiles/httpd24ghost$ docker pull httpd:2.4.65
2.4.65: Pulling from library/httpd
c01338083e94: Pull complete
4052aa95ed61: Pull complete
4f4fb700ef54: Pull complete
7b4309d8e987: Pull complete
7c70c81032a6: Pull complete
27afd215a00f: Pull complete
Digest: sha256:027c678f36d3cd3dd2b44ad1e963e81be66f9eba065381c1126d3019fffeb01a
Status: Downloaded newer image for httpd:2.4.65
docker.io/library/httpd:2.4.65
operator@rp00:~/dockerfiles/httpd24ghost$