Jump to content

Is it possible to install docker? Fresh latest build


Recommended Posts

Posted

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)
 

 

 

Posted

Use armbian-config -> software -> docker ... on a fresh image. Or use instructions that works.

Posted

Thank you Igor - I googled some instructions which are perhaps out of date?

I had no idea a simple menu based config was even built in!

 

I'll have a play

 

 

Posted
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:

Posted

Hi, @Igor

 

I`ve installed a fresh build of armbian (Version 20.05.4) on a Tinkerboard and tried to install docker via armbian-config > software > Softy > Docker...

The system show a "Getting packages" Screen, but it not installed the Docker.

 

Can you help me?

 

Thanks in advance.

Posted

What is the output from:

# docker -v

# docker-compose -v

 

and please...  Provide logs with 

armbianmonitor -u

 significantly raises chances that issue is getting addressed.

Posted (edited)

@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
Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines