Wish I knew more about the Pi OS's to help.. I've learned in the past they are a different beast.
Docker Issue on Install
-
-
If it matters any, other than my issues installing Docker, OMV is up and running currently and sharing a single HDD on my network.
Did you try removing /etc/default/docker and then install docker-ce?
-
Yes. I tried all the steps you outlined in an earlier reply more than once because you said it wouldn't hurt to run them more than once.
I have also reformatted and tried a fresh install again more than once.
-
-
I'm currently in the process of rebuilding my OMV, but I have a spare SD Card which I could use in my 3B which is currently running Kodi. I did have OMV working on a 2B just running Pi-Hole in docker (but I've since moved this DietPi) but I never had any problems using the Pi with OMV.
-
At this point I think that I am just going to install Raspbian on this Pi so I can get it up and running for what I need right now. I may come back to OMV in the future when I get something else to run it on.
-
I was just able to install it on my rpi with
apt-get purge docker-ce
rm -rf /etc/docker
rm -rf /var/lib/docker
apt-get purge cockpit-docker docker-ce-cli
omv-aptclean
apt-get install docker-ce -
-
I will try these steps in a couple of hours and get back with you.
-
Typing in
apt-get purge docker-ce
Gives me this:
root@raspberrypi:~# apt-get purge docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
containerd.io docker-ce-cli imagemagick-6-common libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common php-curl
php-imagick php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
docker-ce* openmediavault-docker-gui*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 54.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 52171 files and directories currently installed.)
Removing openmediavault-docker-gui (4.1.3) ...
Removing docker-ce (5:18.09.3~3-0~debian-stretch) ...
Processing triggers for openmediavault (4.1.19-1) ...
Restarting engine daemon ...
(Reading database ... 52081 files and directories currently installed.)
Purging configuration files for docker-ce (5:18.09.3~3-0~debian-stretch) ...
Purging configuration files for openmediavault-docker-gui (4.1.3) ...
Processing triggers for systemd (232-25+deb9u9) ...
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x762d5390>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x762d5390>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callableThe next few lines worked until,
apt-get purge cockpit-docker docker-ce-cli
Gives me this:
root@raspberrypi:~# apt-get purge cockpit-docker docker-ce-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'cockpit-docker' is not installed, so not removed
The following packages were automatically installed and are no longer required:
containerd.io imagemagick-6-common libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common php-curl php-imagick
php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
docker-ce-cli*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 44.4 MB disk space will be freed.
Do you want to continue? [Y/n] omv-aptclean
Abort.
root@raspberrypi:~# Y
Could not find the database of available applications, run update-command-not-found as root to fix this
Y: command not foundThen finally,
apt-get install docker-ce
returns:
root@raspberrypi:~# apt-get install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
imagemagick-6-common libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common php-curl php-imagick
php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl
Use 'apt autoremove' to remove them.
Recommended packages:
aufs-tools cgroupfs-mount | cgroup-lite pigz
The following NEW packages will be installed:
docker-ce
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/10.8 MB of archives.
After this operation, 53.4 MB of additional disk space will be used.
Selecting previously unselected package docker-ce.
(Reading database ... 52076 files and directories currently installed.)
Preparing to unpack .../docker-ce_5%3a18.09.3~3-0~debian-stretch_armhf.deb ...
Unpacking docker-ce (5:18.09.3~3-0~debian-stretch) ...
Setting up docker-ce (5:18.09.3~3-0~debian-stretch) ...
update-alternatives: using /usr/bin/dockerd-ce to provide /usr/bin/dockerd (dockerd) in auto mode
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-03-21 14:43:01 EDT; 26ms ago
Docs: https://docs.docker.com
Process: 14403 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 14403 (code=exited, status=1/FAILURE)
CPU: 637msMar 21 14:43:01 raspberrypi systemd[1]: docker.service: Unit entered failed state.
Mar 21 14:43:01 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (232-25+deb9u9) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)Once again I started with a brand new install. The only things I have done are as follows:
Flashed the SD card.
Waited until the Pi wasn't showing any more scrolling text and logged into the webui.
Changed autologout to disable, and default password.
Fixed date/time.
Enabled permit root login in SSH
Changed root password via putty.
update/upgrade
Enabled Docker CE in extras.
Installed docker gui, which fails.
Typed in commands you gave me. -
Installed docker gui, which fails.
Don't do this. I don't have a good way to fix the plugin to work on the RPi. If you install docker-ce first and have that successfully installed, then you can install the plugin.
After this operation, 44.4 MB disk space will be freed.
Do you want to continue? [Y/n] omv-aptclean
Abort.
root@raspberrypi:~# Y
Could not find the database of available applications, run update-command-not-found as root to fix this
Y: command not foundYou answered the question with omv-aptclean instead of Y.
-
-
About the not answering with Y part... I noticed that and when I tried to run this process a second time I did it right. I thought I had edited my post to take that bit out.
I appreciate your help. I may try to fix it one last time just to see if it works without the plugin, but I believe that I am just going to make this a retro pie for now to replace my hacked SNES mini and start again with something that is more powerful in the future.
-
I had the same Issue with my Raspberry Pi 2 B+
After reading this thread and trying different approaches i came up with a solution.
- download OMV_4_Raspberry_Pi_2_3_3Plus.img and used Win32DiskImager to make a bootable SD Card
- on first startup wait until it has restarted then login (via console) and change root password
- disable autologout
- change web admin password
- fix date/time
- in Update Management click upgrade and wait until it is ready
- omv-changerepo "Docker CE" enable or enable Docker CE in extras
- apt-get update
- apt-get install docker-ce
- apt-get install openmediavault-docker-guiThis finally worked for me without any errors.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!