Just when I thought it was safe to go down to the Dock(er)

The very innocuous Dockerfile entry

FROM armv7/armhf-ubuntu
RUN apt-get update

is throwing the following error:

The command '/bin/sh -c apt-get update' returned a non-zero code: 139

Now, this is on a completely unadulterated Docker 1.7 install and converting it to,

CMD [ "/bin/dash", "-c", "apt-get", "update" ]

works just fine but there’s no way I’m doing this for multi-line commands installing lots of packages. Changing the shell (from dash) to bash makes no difference; it appears to be that ‘sh -c’ wants the command and all arguments as one string but that isn’t what it’s getting.

So, rather than just getting on with doing the tasks I actually want, I have to chase down some stupid setting or version error.

Maybe I should have switched to Unikernels.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s