Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | Docker: Repo version bug on RPi #2282

Closed
MichaIng opened this issue Nov 25, 2018 · 3 comments
Closed

DietPi-Software | Docker: Repo version bug on RPi #2282

MichaIng opened this issue Nov 25, 2018 · 3 comments
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done Stretch
Milestone

Comments

@MichaIng
Copy link
Owner

MichaIng commented Nov 25, 2018

Ref:

Not related to the fd:// issue, but a dedicated issue with most recent repo version on RPi it seems. Manual downgrading seems to work.


To freeze version, until repo has the fix:

echo 'Package: docker-ce
Pin: version 18.06.1*
Pin-Priority: 1000' > /etc/apt/preferences.d/dietpi-docker_fix

Install last workking version: G_AGI docker-ce=18.06.1~ce~3-0~raspbian

Note: Required on RPi only! Still unclear if it's for ARMv6 only or ARMv7 as well...
Failsafe: Pin for all RPi's!

Stretch only, on Jessie 18.06.1 is latest offered version:

@MichaIng MichaIng added External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi labels Nov 25, 2018
@MichaIng MichaIng added this to the v6.18 milestone Nov 25, 2018
@Fourdee Fourdee modified the milestones: v6.18, v6.19 Nov 25, 2018
@Fourdee Fourdee modified the milestones: v6.19, v6.20 Dec 4, 2018
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Investigating 🤔 labels Dec 9, 2018
@MichaIng MichaIng changed the title DietPi-Software | Docker: Upstream bug on RPi? DietPi-Software | Docker: Raspbian repo version bug Dec 9, 2018
@MichaIng MichaIng changed the title DietPi-Software | Docker: Raspbian repo version bug DietPi-Software | Docker: Repo version bug on RPi Dec 9, 2018
@MichaIng
Copy link
Owner Author

MichaIng commented Dec 9, 2018

Alternative fix:

  • Instead of freeze version to v18.06.1, better only skip faulty v18.09.0?
  • This allows APT to update, as fast as a newer version is available:
echo 'Package: docker-ce
Pin: version 18.09.0*
Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix

@MichaIng
Copy link
Owner Author

MichaIng commented Dec 10, 2018

Test on VM Stretch:

After installing docker with current code:

root@VM-Stretch:~# dpkg -l | grep docker
ii  docker-ce                     5:18.09.0~3-0~debian-stretch   amd64        Docker: the open-source application container engine
ii  docker-ce-cli                 5:18.09.0~3-0~debian-stretch   amd64        Docker CLI: the open-source application container engine
root@VM-Stretch:~# echo 'Package: docker-ce
Pin: version 18.09.0*
Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix

🈴 Did not downgrade. After manual downgrade, did upgrade.

Damn, older docker-ce packages are in place, but not docker-ce-cli.

Manual downgrade of docker-ce works, but docker-ce-cli will be removed due to version incompatibility.

Old version does not depend on cli:

Package: docker-ce
Version: 18.03.0~ce-0~debian
Priority: optional
Section: admin
Maintainer: Docker <[email protected]>
Installed-Size: 181 MB
Depends: iptables, init-system-helpers (>= 1.18~), libc6 (>= 2.17), libdevmapper1.02.1 (>= 2:1.02.97), libltdl7 (>= 2.4.6), libseccomp2 (>= 2.3.0), libsystemd0
Recommends: aufs-tools, ca-certificates, cgroupfs-mount | cgroup-lite, git, pigz, xz-utils
Conflicts: docker (<< 1.5~), docker-ee, docker-engine, docker-engine-cs, docker.io, lxc-docker, lxc-docker-virtual-package
Replaces: docker-engine
Homepage: https://dockerproject.org
Download-Size: 33.8 MB
APT-Sources: https://download.docker.com/linux/debian stretch/edge amd64 Packages
Description: Docker: the open-source application container engine
 Docker is an open source project to build, ship and run any application as a
 lightweight container
 .
 Docker containers are both hardware-agnostic and platform-agnostic. This means
 they can run anywhere, from your laptop to the largest EC2 compute instance and
 everything in between - and they don't require you to use a particular
 language, framework or packaging system. That makes them great building blocks
 for deploying and scaling web apps, databases, and backend services without
 depending on a particular stack or provider.

Ahh, new version starts with 5::

root@VM-Stretch:~# apt show -a docker-ce
Package: docker-ce
Version: 5:18.09.0~3-0~debian-stretch
Priority: optional
Section: admin
Maintainer: Docker <[email protected]>
Installed-Size: 85.3 MB
Depends: docker-ce-cli, containerd.io, iptables, libseccomp2 (>= 2.3.0), libc6 (>= 2.17), libsystemd0
Recommends: aufs-tools, ca-certificates, cgroupfs-mount | cgroup-lite, git, pigz, xz-utils, libltdl7
Conflicts: docker (<< 1.5~), docker-engine, docker-engine-cs, docker.io, lxc-docker, lxc-docker-virtual-package
Replaces: docker-engine
Homepage: https://www.docker.com
Download-Size: 17.4 MB
APT-Sources: https://download.docker.com/linux/debian stretch/edge amd64 Packages
Description: Docker: the open-source application container engine
 Docker is a product for you to build, ship and run any application as a
 lightweight container
 .
 Docker containers are both hardware-agnostic and platform-agnostic. This means
 they can run anywhere, from your laptop to the largest cloud compute instance and
 everything in between - and they don't require you to use a particular
 language, framework or packaging system. That makes them great building blocks
 for deploying and scaling web apps, databases, and backend services without
 depending on a particular stack or provider.

🈯️ Works with:

root@VM-Stretch:~# echo 'Package: docker-ce
> Pin: version 5:18.09.0*
> Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix
root@VM-Stretch:~# cat /etc/apt/preferences.d/dietpi-docker_fix
Package: docker-ce
Pin: version 5:18.09.0*
Pin-Priority: -1
root@VM-Stretch:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Recheck version string on Raspbian repo:

Package: docker-ce
Architecture: armhf
Version: 5:18.09.0~3-0~raspbian-stretch

Test if apt upgrade automatically downgrades the version accordingly:

root@VM-Stretch:~# dpkg -l | grep docker-ce
ii  docker-ce                     5:18.09.0~3-0~debian-stretch   amd64        Docker: the open-source application container engine
ii  docker-ce-cli                 5:18.09.0~3-0~debian-stretch   amd64        Docker CLI: the open-source application container engine
root@VM-Stretch:~# echo 'Package: docker-ce
> Pin: version 5:18.09.0*
> Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix
root@VM-Stretch:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

🈴 Nope, manual downgrade required

🈯️ Then:

root@VM-Stretch:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  containerd.io
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@VM-Stretch:~# G_AGA
[  OK  ] APT autoremove + purge, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  containerd.io*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
                                                              After this operation, 87.6 MB disk space will be freed.
(Reading database ... 16710 files and directories currently installed.)                                              (Reading database ...
Removing containerd.io (1.2.0-1) ...
(Reading database ... 16702 files and directories currently installed.)
Purging configuration files for containerd.io (1.2.0-1) ...

[  OK  ] G_AGA
root@VM-Stretch:~# dpkg -l | grep docker-ce
ii  docker-ce                     18.06.1~ce~3-0~debian          amd64        Docker: the open-source application container engine

Okay so this should work for RPi:

echo 'Package: docker-ce
Pin: version 5:18.09.0~3-0~raspbian-stretch
Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix
G_AGI docker-ce=18.06.1~ce~3-0~raspbian
G_AGA

Will recheck via RPi user and implement into hotfix v6.19.7
€: Being more specific in version string, in case repo update just changes the latter numbers.

MichaIng referenced this issue Dec 10, 2018
- DietPi-Software | Netdata: Resolved an issue, where uninstalling netdata lead to a broken system. Thanks to @PDXUser for reporting this issue: https://github.com/Fourdee/DietPi/issues/2336
- DietPi-Software | Docker: Resolved an issue on RPi, where a faulty "docker-ce" version from repository prevents service start on Raspberry Pi. Thanks to @iAreSee and @garret for reporting this issue, finding and testing workarounds: https://github.com/Fourdee/DietPi/issues/2282
@MichaIng
Copy link
Owner Author

Fix released with v6.19.7. Will mark as closed.

@MichaIng MichaIng added Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. and removed Solution available 🥂 Definite solution has been done labels Jul 1, 2019
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. labels Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done Stretch
Projects
None yet
Development

No branches or pull requests

2 participants