docker: exec format error

Dustin Kirkland kirkland at canonical.com
Fri Jun 26 14:08:16 UTC 2015


On Fri, Jun 26, 2015 at 3:51 AM, Pierre-Andre Morey
<pierre-andre.morey at canonical.com> wrote:
> repository=registry in 'We might want some sort of 'official' arch
> repository for supported arch (armhf, amd64, ppc, ppc64el, arm64).'
>
>
> 2015-06-26 10:50 GMT+02:00 Pierre-Andre Morey
> <pierre-andre.morey at canonical.com>:
>>
>> Not so easy, as the image need to support multiple arch, there is no
>> direct ubuntu:trusty to armbuild/ubuntu:trusty, it could also be
>> kickinz1/ubuntu.
>>
>> Docker afaik only support amd64 arch for now. Ubuntu support more arch and
>> has docker working in those, but the docker-registry doesn't build official
>> images on those arch yet.
>>
>> So do we want to have the snappy docker wrapper to explicitly modify
>> 'ubuntu' string to 'armbuild/ubuntu' on snappy arm arches?

Yes, something along those lines.  But as you say below, let's instead
choose our words wisely, and instead of "armbuild", use one of the
arch strings that can be determined more algorithmically.

>> We might want some sort of 'official' arch repository for supported arch
>> (armhf, amd64, ppc, ppc64el, arm64).
>>
>> 2015-06-25 18:26 GMT+02:00 Dustin Kirkland <kirkland at canonical.com>:
>>>
>>> On Thu, Jun 25, 2015 at 8:59 AM, Jamie Strandboge <jamie at canonical.com>
>>> wrote:
>>> > On 06/25/2015 01:25 AM, Seth Arnold wrote:
>>> >> On Wed, Jun 24, 2015 at 05:40:27PM -0700, Zhuoqun Cheng wrote:
>>> >>> *$ docker run hello-world*
>>> >>> *FATA[0001] Error response from daemon: Cannot start container
>>> >>> abcbe08d0619fef08b9de12dfab982ff747ac47198c185899410676f35b512e2: [8]
>>> >>> System error: exec format error *
>>> >>> (Just to be clear, the first time I ran it, it did pull the image.)
>>> >>
>>> >> "exec format error" sounds a lot like an architecture mis-match. Are
>>> >> you
>>> >> sure the image you downloaded is inteded to be used on ARM? Is it
>>> >> compiled
>>> >> for the correct arm instruction set?
>>> >>
>>> > FYI, if using docker on arm you need to use '-t armbuild/ubuntu:trusty'
>>> > instead
>>> > of '-t ubuntu:trusty'.
>>>
>>> Can we please patch docker to detect and handle that automatically?
>>>
>>> Thanks,
>>> Dustin
>>
>>
>



More information about the snappy-app-devel mailing list