[Solved] Docker does not start on clean image on RaspberryPi3

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by MichaIng »

@Garret
Thanks for sharing issue + solution. This renders my planned tests on VM obsolete :P.
it has already been mentioned several times that what you wrote was tried.
iaresee just joined the conversation and I better ask one time too often then doing further research while solution was just overseen ;).

Hmm okay, if the repo currently ships a broken version on RPi, question is how we handle in upcoming DietPi release:
- The GitHub issue is 2 weeks old now. Hope that it will be resolved soon and leave our installer is as? Of course inform users about the external bug.
- Install the old version for now on RPi to have a working installer and revert to most current version on next release, after issue was fixed? (I vote for this!) Needs apt-mark hold then as well.
- Block Docker install on RPi for now? Most properly not desired option, since above is possible ;).
iaresee
Posts: 9
Joined: Fri Nov 23, 2018 10:53 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by iaresee »

MichaIng wrote: Sat Nov 24, 2018 11:18 pm iaresee just joined the conversation and I better ask one time too often then doing further research while solution was just overseen ;).
Never hurts to ask! It looks like this is an upstream break though so possibly pinning to an older version or blocking it for now makes the most sense.
iaresee
Posts: 9
Joined: Fri Nov 23, 2018 10:53 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by iaresee »

I got this working. I had to pin docker-ce to 18.06.1*. Installed using:

Code: Select all

apt-get install docker-ce=18.06.1~ce~3-0~raspbian
Pinned using:

Code: Select all

root@pi-hole:~# cat /etc/apt/preferences.d/docker-ce
Package: docker-ce
Pin: version 18.06.1*
Pin-Priority: 1000
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by MichaIng »

@iaresee
Still no fix in repo? Hope this will be the case until DietPi v6.20, so we don't need to patch in a downgrade.

But your solution via pin preferences at least is the cleanest, easiest to patch and easiest to revert, when repo version has the fix.

Strange is: https://github.com/moby/moby/issues/381 ... -438048459
- According to discussion it seems to a ARMv6 issue only (RPi0+1). But you use an RPi3, right? Would be good to know for which devices/architectures exactly we need to pin the version.
iaresee
Posts: 9
Joined: Fri Nov 23, 2018 10:53 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by iaresee »

MichaIng wrote: Sun Dec 09, 2018 9:15 pm But you use an RPi3, right?
Correct.
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by MichaIng »

Okay, failsafe pin version for all RPis.

Just recognized I did not yet link our GitHub issue here ;): https://github.com/Fourdee/DietPi/issues/2282
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by MichaIng »

Ah have a better idea:
- Instead of pinning to v18.06.1, it is better to pin priority of v18.09.0 to negative value?
- This allows APT to update, as fast as a newer version than v18.09.0 is available:

Code: Select all

cat << _EOF_ > /etc/apt/preferences.d/docker-ce
Package: docker-ce
Pin: version 18.09.0*
Pin-Priority: -1
_EOF_
@iaresee
Could you test, if this works?
Garret
Posts: 52
Joined: Sat Nov 10, 2018 12:23 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by Garret »

@MichaIng If what you expect is true than your solution I agree would be better.

Btw I actually have a rpi1 but on Wednesday I am getting a new rpi3b+ 8)
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by MichaIng »

If you guys can verify this works (v18.09.0 is not installed), then I will add it to a hotfix update tonight, that is required for another more critical issue anyway.

Sadly I have no RPi free for testing and Fourdee is away for some days.
Garret
Posts: 52
Joined: Sat Nov 10, 2018 12:23 pm

Re: Docker does not start on clean image on RaspberryPi3

Post by Garret »

I could some testing on the rpi1 when I get my rpi3 from Wednesday-Thursday because right now I have all my setup there and cannot play too much. Sorry.
Post Reply