Unable to get docker working (Linux Noob)

Post Reply
michvw
Posts: 13
Joined: Wed Apr 13, 2016 6:55 pm
languages_spoken: english
ODROIDs: odroid c2
Has thanked: 0
Been thanked: 0
Contact:

Unable to get docker working (Linux Noob)

Unread post by michvw » Fri Dec 29, 2017 1:38 am

Hi all,

I'm currently looking into using Docker on my Odroid C2.
I've installed it using the steps documented here:
https://docs.docker.com/engine/installa ... ocker-ce-1
The install step failed but when running 'sudo apt-get install docker' instead of 'sudo apt-get install docker-ce' the installation kicks of and completes.

Yet when trying to run the 'Hello world' example I'm getting an error:
Unable to find command Docker

I suspect that I'm doing something very basic wrong as I don't have much Linux knowledge. Would anyone have some input on this?

Thanks!

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by odroid » Fri Dec 29, 2017 9:54 am


michvw
Posts: 13
Joined: Wed Apr 13, 2016 6:55 pm
languages_spoken: english
ODROIDs: odroid c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by michvw » Sun Dec 31, 2017 1:03 am

Hi Odroid,

I know how to use docker, I'm just having trouble with the Docker installation on the Odroid C2.
To troubleshoot I installed the latest ubuntu version from the wiki but I'm still having the same issue.
Perhaps the output below clarifies what I'm doing wrong?

Code: Select all

odroid@odroid64:~$ sudo apt-get update
Hit:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
Hit:3 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu xenial InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease          
Hit:5 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease           
Hit:6 http://ports.ubuntu.com/ubuntu-ports xenial-proposed InRelease           
Hit:7 http://deb.odroid.in/c2 xenial InRelease                                 
Get:8 https://download.docker.com/linux/ubuntu xenial InRelease [49.8 kB]  
Get:9 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [3,150 B]
Fetched 53.0 kB in 2s (24.1 kB/s)     
Reading package lists... Done
odroid@odroid64:~$ sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
odroid@odroid64:~$ sudo apt-get install docker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  docker
0 upgraded, 1 newly installed, 0 to remove and 211 not upgraded.
Need to get 11.9 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe arm64 docker arm64 1.5-1 [11.9 kB]
Fetched 11.9 kB in 0s (155 kB/s)  
Selecting previously unselected package docker.
(Reading database ... 197115 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_arm64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Setting up docker (1.5-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
odroid@odroid64:~$ sudo docker run hello-world
[color=#FF0000]sudo: docker: command not found[/color]
odroid@odroid64:~$ sudo systemctl status docker
● docker.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
It says 'Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe arm64 docker arm64 1.5-1 [11.9 kB]' so I'm suspecting I have the right arch version but why am I unable to run any 'Docker...' command?

michvw
Posts: 13
Joined: Wed Apr 13, 2016 6:55 pm
languages_spoken: english
ODROIDs: odroid c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by michvw » Thu Jan 04, 2018 4:27 am

any input on this? Should I try installing docker.io?
Can't wait to get this all working :D

tellman
Posts: 2
Joined: Fri Jul 08, 2016 11:02 am
languages_spoken: english
ODROIDs: C0, XU4, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by tellman » Thu Feb 08, 2018 8:57 am

I'm having similar issue. Using minimal Ubuntu image ubuntu64-16.04.3-minimal-odroid-c2-20171005.img.xz. I suspected that adding proper repository architecture is important:

Code: Select all

add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- notice "amrhf" instead of "amd64"

However, the system can't even find docker-ce package!

Code: Select all

apt-cache search docker-ce
returns nothing :oops:

Something is wrong with Odroid ubuntu images.

umiddelb
Posts: 451
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by umiddelb » Sat Feb 10, 2018 4:05 pm

These steps will give you the docker-ce package

1. Add the Docker repository in /etc/apt/sources.list.d/docker.list

Code: Select all

deb https://download.docker.com/linux/ubuntu xenial stable
2. Add the Docker repository signature key (7EA0A9C3F273FCD8)

Code: Select all

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
3. Update the package database

Code: Select all

$ sudo apt update
Voilà

Code: Select all

$ apt-cache search docker-ce
docker-ce - Docker: the open-source application container engine

tellman
Posts: 2
Joined: Fri Jul 08, 2016 11:02 am
languages_spoken: english
ODROIDs: C0, XU4, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by tellman » Sun Feb 11, 2018 5:53 am

Which image are you running on C2? These steps DO NOT work in ubuntu64-16.04.3-minimal-odroid-c2-20171005.img.xz !

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by odroid » Sun Feb 11, 2018 10:36 am

You had to run sudo apt install apt-transport-https before sudo apt update.

I can see below message on XU4 and C2 Ubuntu OS after following @umiddelb's guide.

Code: Select all

odroid@odroid64:~$ apt-cache search docker-ce                                                                                                                        
docker-ce - Docker: the open-source application container engine
After following this system update guide, https://wiki.odroid.com/odroid-c2/os_im ... and_system
My kernel version is.

Code: Select all

odroid@odroid64:~$ uname -a
Linux odroid64 3.14.79-117 #1 SMP PREEMPT Tue Jan 2 23:46:30 BRST 2018 aarch64 aarch64 aarch64 GNU/Linux

umiddelb
Posts: 451
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Unable to get docker working (Linux Noob)

Unread post by umiddelb » Sun Feb 11, 2018 8:24 pm

tellman wrote:Which image are you running on C2? These steps DO NOT work in ubuntu64-16.04.3-minimal-odroid-c2-20171005.img.xz !
OK, it's always helpful to include the error message you receive, this helps us to be more precise in the answers we give.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest