"/var/lib/docker/aufs/mnt/[id] is not within /var/lib/docker/aufs/mnt/[same id]"

Hello,

I’m currently trying to reuse an existing glassfish image. I have the DockerFile and all necessary resources. The reason I can’t work by instruction provided along the data is that there are custom scripts around it, and it was built to be used with boot2docker on Windows. I copied the data to a Linux server, and left out creating virtual machines etc. However, when I try to execute “sudo docker build -t oracle [path to oracle folder]”, or just “sudo docker build .” from the right folder, I get “/var/lib/docker/aufs/mnt/[id] is not within /var/lib/docker/aufs/mnt/[same id]”.
When I searched for this error online, they all seemed to be related to old versions of docker. I’m currently using 1.0.1, build 990021a, which I got from using “apt-get install docker.io”, and Ubuntu 3.16.0-41-generic.

Thank you in advance for any help.

Hello. Docker 1.0.1 is indeed quite an old version of Docker. There has been something like 17 releases since 1.0.1. The latest version is currently 1.7.1. I would recommend installing the latest Docker version by using the “get.docker.com” method documented here: http://docs.docker.com/installation/ubuntulinux/#installation

Hi. I installed it using “apt-get install docker.io” because “wget -qO- https://get.docker.com/gpg | sudo apt-key add -” always silently faild (due to the -q). This was due to the fact that I am behind a proxy. I got it all working now, by updating to 1.7.1, and other error fixing. Thanks.