Is it possible to install docker? Fresh latest build


Recommended Posts

OrangePiZero

 

root@orangepizero:~# uname -r
4.19.59-sunxi
root@orangepizero:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@orangepizero:~#
 

 

 

Only run sud apt get update / upgrade

and then

sudo apt install docker.io
 

 

 

however it threw out this

 

 


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; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2019-09-17 13:41:42 UTC; 65ms ago
     Docs: https://docs.docker.com
  Process: 9480 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
 Main PID: 9480 (code=exited, status=1/FAILURE)
dpkg: error processing package docker.io (--configure):
 installed docker.io package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
 

 

 

Link to post
Share on other sites
Donate and support the project!

7 hours ago, GilGonGan said:

This did end up working, is there a 'correct' CLI way to install docker though? 


Our script uses "correct" way:

 

1. Adds sources
2. Download key
3. Update and install

https://github.com/armbian/config/blob/master/debian-software#L785-L788


You can also check official instructions which does the same.


There is a note:

Older versions of Docker were called docker, docker.io , or docker-engine. If these are installed, uninstall them:

Link to post
Share on other sites

@IgorI'm not quite sure if this is the problem but the current docker install script which I followed from your link above: https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script

 

leads to download a script that differs from the script used in procedure install_docker in armbian-config. Thus errors 404 on docker install.

 

On armbian-config script the expression

echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/${family,,} $distribution edge"

 returns the broken value of 

deb [arch=armhf] https://download.docker.com/linux/  edge

which leads to error when doing apt update for docker.list so unable to install docker-ce

 

 

The script from the link I stated above puts this in the docker.list:

 

deb [arch=armhf] https://download.docker.com/linux/debian buster stable

 

which seems ok and the install goes further and installs the docker-ce.

 

Edited by surenz
correct repo in last code entry
Link to post
Share on other sites

I see in the docker install script get-docker.sh) the following text:

# The channel to install from:
#   * nightly
#   * test
#   * stable
#   * edge (deprecated)

 so I think  that  stable is OK instead of edge .

At least on my armbian buster it installed the docker correctly and I'm currently trying Home assistant supervised install.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...