src-d / coreos-nvidia

Yet another NVIDIA driver container for Container Linux (aka CoreOS)
GNU General Public License v3.0
37 stars 15 forks source link

Installation fails with: Syntax error: "if" unexpected #10

Open mcapuccini opened 6 years ago

mcapuccini commented 6 years ago

Hi! I am trying to install the nvidia drivers on CoreOS using your container. However when running the container I get the following error:

core@marco-gpu1 ~ $ source /etc/os-release
core@marco-gpu1 ~ $ docker run --rm --privileged --volume /:/rootfs/ srcd/coreos-nvidia:${VERSION}
/bin/sh: 1: Syntax error: "if" unexpected

I think you are missing a ; or a && right after this line: https://github.com/src-d/coreos-nvidia/blob/master/Dockerfile#L103

mcapuccini commented 6 years ago

This should fix it: https://github.com/src-d/coreos-nvidia/pull/11.