Repository navigation
Closed
Labels
area/kernelarea/storage/overlaykind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/1.5
Description
This Dockerfile doesn't seem to build with the overlay storage backend:
from ubuntu:trusty
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y build-essential g++ libblas-dev liblapack-dev gfortran python-dev python-pip
RUN pip install --upgrade numpy
RUN pip install --upgrade statsmodels
RUN pip install --upgrade flask
It ends up spitting out the below errors:
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1443, in install
requirement.commit_uninstall()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 610, in commit_uninstall
self.uninstalled.commit()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1860, in commit
rmtree(self.save_dir)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 43, in rmtree
onerror=rmtree_errorhandler)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 256, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 254, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/tmp/pip-dXgb99-uninstall/usr/lib/python2.7/dist-packages'
The same Dockerfile works with both AUFS and DeviceMapper storage backends (have not tried with BTRFS).
docker version:
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
docker info:
Debug mode (server): false
Debug mode (client): true
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Kernel Version: 3.18.0-031800-generic
Fds: 10
Goroutines: 15
EventsListeners: 0
Init Path: /usr/bin/docker
Docker Root Dir: /var/lib/docker
WARNING: No swap limit support
uname -a:
Linux my_server 3.18.0-031800-generic #201412071935 SMP Mon Dec 8 00:36:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Any suggestions or additional info I can provide?
Reacted by Liam Horne
Metadata
Metadata
Assignees
Labels
area/kernelarea/storage/overlaykind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/1.5
Activity
cpuguy83 commentedon Apr 13, 2015
Can you try with either the master build or the latest 1.6 RC?
https://master.docker.com for master binary
#11635 (comment) for 1.6 RC
lvangool commentedon Apr 13, 2015
Tested, exact same problem I'm afraid.
docker version:
LK4D4 commentedon Apr 13, 2015
Yup, I can confirm in master.
vbatts commentedon Apr 14, 2015
@LK4D4 what kernel version are you running and underlying filesystem (ext4?)?
lvangool commentedon Apr 14, 2015
@vbatts yes, ext4 (kernel was 3.18 - tried with 3.19 too)
LK4D4 commentedon Apr 14, 2015
@vbatts mine is 4.0 with ext4
rochacon commentedon Apr 29, 2015
Not sure if this is related with the overlay driver. Installing pip with the get-pip.py script, which installs the latest version, works fine on overlay.
docker info
fail
success
vbatts commentedon Apr 29, 2015
that would be nice to confirm. From my investigation, it seemed pretty murky in the failed example, that it made one of the egg info as a unix socket and failed to remove it from /tmp. Seemed like a bad file check somewhere, but I didn't feel like that was happening in the kernel...
LK4D4 commentedon Apr 29, 2015
@vbatts unix-socket also mentioned in #12080
vbatts commentedon Apr 29, 2015
correct. Overlayfs and unix sockets do not play nice together yet. But why
would a pip install make an egg info as a socket? those egg info are
usually only regular file or directory.
On Wed, Apr 29, 2015 at 1:24 PM, Alexander Morozov <[email protected]
dustinlacewell commentedon Aug 5, 2015
Suffering from this exactly as above with Ubuntu 14.04 with 3.19.0-25-generic and Docker 1.7.1
38 remaining items
Upgrade Python tools in this step to mitigate: moby/moby#12327
strohel commentedon Jul 27, 2016
Hi all, I've recently upgraded Linux kernel to 4.6.4 (back from 4.1) and the problem seems to be gone! Do you have the same observation?
thaJeztah commentedon Jul 27, 2016
According to https://bugzilla.kernel.org/show_bug.cgi?id=109611, this is fixed in kernel 4.5 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=45d11738969633ec07ca35d75d486bf2d8918df6
ping @LK4D4 can you verify if that's what solves this issue?
Overlay pip issue moby/moby#12327 is mostly resolved
justincormack commentedon Sep 19, 2016
Seems to be fixed in 4.4.21 too. (4.4 stable series has had a lot of the overlay fixes backported recently).
mkocikowski commentedon Oct 3, 2016
This problem doesn't seem to be specific to python / pip. Running overlay fs on ext4, kernel 4.4 (info below) a simple
COPY foo /foowill fail with "no such file or directory" error (error in the last line of the shell output below):Strangely enough, restarting docker engine "solved" the problem.
thaJeztah commentedon Oct 10, 2016
This issue is resolved in recent kernels
This issue is resolved in recent kernels; if possible, upgrade your kernel to a version that includes this fix, or contact your OS vendor to make sure they carry the fix that resolves this. For more information, read the comments above; #12327 (comment), and #12327 (comment).
Note that this is not a bug in Docker, so please don't comment that you're still having this on docker version x.y.z.
common: work around overlay storage backend pip uninstall
common: work around overlay storage backend pip uninstall
common: work around overlay storage backend pip uninstall
Add a pip option to address Travis failures due to overlayfs bug.
Workaround for moby/moby#12327
Workaround for moby/moby#12327