[SOLVED] docker-compose error

Moderators: mdrjr, odroid

[SOLVED] docker-compose error

Unread postby sky » Thu Sep 13, 2018 5:13 pm

XU3
Running a clean install of: https://wiki.odroid.com/odroid-xu4/os_i ... 4/20180531 on an eMMC 64GB and an external Samsung 1TB SSD connected to USB3.0 Host.
Installed Docker CE with this tutorial: https://docs.docker.com/install/linux/d ... ge-drivers with the armhf repository.
and
Docker Compose from this tutorial: https://docs.docker.com/compose/install

All installed as root.
After doing this: chmod +x /usr/local/bin/docker-compose
I run this: docker-compose --version
..and get this: standard_init_linux.go:190: exec user process caused "exec format error"

Does any of you know why, and how to solve this?
I have googled but didn't find any specific help for this error on an Odroid.

edit: should I try install this desktop version instead?: https://wiki.odroid.com/odroid-xu4/os_i ... 4/20180501 as I see it has Docker, but does it also have Docker Compose, and working?
I would prefer the minimal version as I don't need a desktop.
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby tobetter » Thu Sep 13, 2018 5:22 pm

sky wrote:XU3
Running a clean install of: https://wiki.odroid.com/odroid-xu4/os_i ... 4/20180531 on an eMMC 64GB and an external Samsung 1TB SSD connected to USB3.0 Host.
Installed Docker CE with this tutorial: https://docs.docker.com/install/linux/d ... ge-drivers with the armhf repository.
and
Docker Compose from this tutorial: https://docs.docker.com/compose/install

All installed as root.
After doing this: chmod +x /usr/local/bin/docker-compose
I run this: docker-compose --version
..and get this: standard_init_linux.go:190: exec user process caused "exec format error"

Does any of you know why, and how to solve this?
I have googled but didn't find any specific help for this error on an Odroid.

Does the error come just after docker-compose --version? What's the output with file /usr/local/bin/docker-compose?
As far as I know, the error happens when a machine type of docker image is not matching with the host when the docker started.
tobetter
 
Posts: 2373
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: docker-compose error

Unread postby sky » Thu Sep 13, 2018 5:32 pm

when doing: file /usr/local/bin/docker-compose
I get this output: /usr/local/bin/docker-compose: POSIX shell script, ASCII text executable
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby sky » Thu Sep 13, 2018 5:59 pm

when a machine type of docker image is not matching with the host when the docker started

hmm this I don't understand - nor how to know/find out?
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby tobetter » Thu Sep 13, 2018 6:09 pm

sky wrote:when doing: file /usr/local/bin/docker-compose
I get this output: /usr/local/bin/docker-compose: POSIX shell script, ASCII text executable

Oh. sorry...I suppoed it's not a script.
I've tried all step from the links to install Docker and Docker-compose. Docker-compose is not supported for armhf from the download link, https://github.com/docker/compose/releases. How did you install it? Also same error was reported to Raspberry Pi as well, https://github.com/tiangolo/uwsgi-nginx ... /issues/67.
tobetter
 
Posts: 2373
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: docker-compose error

Unread postby sky » Thu Sep 13, 2018 6:19 pm

I installed compose from the link above, in my first post.
Yeah I see now that you have a good point - there's no armhf version.
hmm - guess that issue will be the same for the desktop version as well - that it only has Docker implemented and not docker-compose?
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby tobetter » Thu Sep 13, 2018 6:32 pm

sky wrote:I installed compose from the link above, in my first post.
Yeah I see now that you have a good point - there's no armhf version.
hmm - guess that issue will be the same for the desktop version as well - that it only has Docker implemented and not docker-compose?

I am sure Docker works on XU4 since I've set up multiple Docker containers recently on XU4 as well as C2. But haven't test the docker-compose yet.
I've found one repository, https://github.com/hypriot/arm-compose. Maybe you can try. :)
tobetter
 
Posts: 2373
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: docker-compose error

Unread postby sky » Thu Sep 13, 2018 6:45 pm

ah, will look at that today ;)
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby sky » Thu Sep 13, 2018 6:56 pm

From your link: https://github.com/hypriot/arm-compose
I did this:
sudo apt-get remove docker-compose
sudo apt-get install python-pip
sudo pip install docker-compose


Now it works :)
# dd if=AI.img of=/dev/brain bs=unlim conv=noerror
sky
 
Posts: 25
Joined: Tue Feb 10, 2015 4:13 pm
Location: Luxembourg
languages_spoken: english~danish~german
ODROIDs: 1 x XU3

Re: docker-compose error

Unread postby tobetter » Thu Sep 13, 2018 6:59 pm

sky wrote:From your link: https://github.com/hypriot/arm-compose
I did this:
sudo apt-get remove docker-compose
sudo apt-get install python-pip
sudo pip install docker-compose


Now it works :)

Cool, good to know it works...I would try sometime...
Have fun with your ODROID.
tobetter
 
Posts: 2373
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1


Return to Issues

Who is online

Users browsing this forum: No registered users and 0 guests