Here's the exact steps to a minimal reproduced environment:
1. create a linode with 12.04 ubuntu.
2. boot it
3. log in as root
4. install docker via: curl -s
https://get.docker.io/ubuntu/ | sudo sh
5. create a Dockerfile with two lines:
Code:
from ubuntu
run apt-get update
6. run: docker build .
You will receive the following output:
Code:
Uploading context 20.48 kB
Uploading context
Step 1 : FROM ubuntu
Pulling repository ubuntu
8dbd9e392a96: Download complete
b750fe79269d: Download complete
27cf78414709: Download complete
---> 8dbd9e392a96
Step 2 : RUN apt-get update
---> Running in 70d4664776fb
Ign http://archive.ubuntu.com precise InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise/main amd64 Packages
Get:1 http://archive.ubuntu.com precise/main i386 Packages [1641 kB]
Get:2 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:3 http://archive.ubuntu.com precise/main Translation-en [893 kB]
Fetched 2537 kB in 3s (635 kB/s)
2014/01/05 06:16:41 no such file or directory
The "no such file or directory" is the failure. This causes the docker image to not be committed.
Note: this does not occur if you manually run "docker run ubuntu apt-get update" or whatever.
That's pretty much all there is to it guys.