Build process failed: Unknown instruction: ARG

I am trying to create my first automatic Docker Hub build using the Dockerfile, which I successfully created locally. On Docker Hub it does not work with this output

Cloning into 'brx9syjpjlk9bnmymmynwpl'... Warning: Permanently added the RSA host key for IP address '104.192.143.2' to the list of known hosts. KernelVersion: 3.13.0-40-generic Os: linux BuildTime: Mon Oct 12 05:37:18 UTC 2015 ApiVersion: 1.20 Version: 1.8.3 GitCommit: f4bf5c7 Arch: amd64 GoVersion: go1.4.2 Step 0 : FROM ubuntu:14.04 ---> c4bea91afef3 Step 1 : ARG Unknown instruction: ARG 

I did not find a way to pass build-arg to automatic assembly, but my default value for ARG is normal, so it does not matter.

Any ideas what the problem is here?

+7
dockerhub
source share
2 answers

Auto-build Docker Hub still runs Docker 1.8 and does not support ARG. There is a github issue tracking their upgrade to 1.9.

+4
source share

We encountered the same problem on Travis.ci. Upgrade to Docker Engine 1.9.0 worked for us.

We have added this to our travis.yml

 before_script: - sudo apt-get update - sudo apt-get install -y -q docker-engine=$DOCKER_ENGINE_VERSION 
+3
source share

All Articles