title: Docker hub automated build fails but locally does not
body: <p>I have setup an automated build on Docker hub <a href="https://registry.hub.docker.com/u/mbrt/golang-vim-dev/" rel="nofollow noreferrer">here</a> (the sources are <a href="https://github.com/michele-bertasi/go-docker-dev" rel="nofollow noreferrer">here</a>).</p>
  
  <p>The build goes well locally. I have also tried to rebuild it with <code>--no-cache</code> option:</p>
  
  <pre><code>docker build --no-cache .
  </code></pre>
  
  <p>And the process completes successfully</p>
  
  <pre><code>Successfully built 68b34a5f493a
  </code></pre>
  
  <p>However, the automated build fails on Docker hub with this error log:</p>
  
  <pre><code>...
  Cloning into 'nerdtree'...
  [91mVim: Warning: Output is not to a terminal
  [0m
  [91mVim: Warning: Input is not from a terminal
  [0m
  [m[m[0m[H[2J[24;1HError detected while processing command line:
  E492: Not an editor command: PluginInstall
  E492: Not an editor command: GoInstallBinaries
  [91mmv: cannot stat `/go/bin/*': No such file or directory
  [0m
  </code></pre>
  
  <p>This build apparently fails on the following vim command:</p>
  
  <pre><code>vim +PluginInstall +GoInstallBinaries +qall
  </code></pre>
  
  <p>Note that the warnings <code>Output is not to a terminal</code> and <code>Input is not to a terminal</code> appears also in the local build.</p>
  
  <p>I cannot understand how this can happen. I am using a standard Ubuntu 14.04 system.</p>