anitab-org / portal

THIS PROJECT IS ARCHIVED. Systers Portal for communities.
GNU General Public License v2.0
69 stars 209 forks source link

ERROR: Service 'web' failed to build: oci runtime error: /var/lib/docker/devicemapper/mnt/879bdf2445183285a2fa17278bb316e7bdedbd8c6b97ff0df87728c757d98152/rootfs is not an absolute path or is a symlink #379

Closed monajalal closed 4 years ago

monajalal commented 6 years ago

When running part 5 from the Docker documentation, I get the following error:

[jalal@goku portal]$ sudo docker-compose build
[sudo] password for jalal: 
db uses an image, skipping
Building web
Step 1/9 : FROM python:2.7
Trying to pull repository docker.io/library/python ... 
2.7: Pulling from docker.io/library/python
3d77ce4481b1: Pull complete
534514c83d69: Pull complete
d562b1c3ac3f: Pull complete
4b85e68dc01d: Pull complete
b2b679cd961a: Pull complete
2e7962f127e2: Pull complete
204945cc2de5: Pull complete
4a9629d55d9d: Pull complete
Digest: sha256:8907ce99826e948f535e9e2524225a8c5b2d273f2b223c7fe7d82e1fb41efdc3
Status: Downloaded newer image for docker.io/python:2.7
 ---> 43c5f3ee0928
Step 2/9 : MAINTAINER Ana Balica <ana.balica@gmail.com>
 ---> Running in 1564192cb930
 ---> 1cb8d673ce23
Removing intermediate container 1564192cb930
Step 3/9 : EXPOSE 8000
 ---> Running in 79352d8f80ec
 ---> 3eee238615b3
Removing intermediate container 79352d8f80ec
Step 4/9 : WORKDIR /usr/src
 ---> 48a989aa79c0
Removing intermediate container 27f7ebdbebbd
Step 5/9 : RUN mkdir portal
 ---> Running in 7fb49d13eea7

/var/lib/docker/devicemapper/mnt/879bdf2445183285a2fa17278bb316e7bdedbd8c6b97ff0df87728c757d98152/rootfs is not an absolute path or is a symlink
ERROR: Service 'web' failed to build: oci runtime error: /var/lib/docker/devicemapper/mnt/879bdf2445183285a2fa17278bb316e7bdedbd8c6b97ff0df87728c757d98152/rootfs is not an absolute path or is a symlink

This bug happens in CentOS 7:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.4.1708 (Core) 
Release:    7.4.1708
Codename:   Core
$ docker -v
Docker version 1.13.1, build 774336d/1.13.1

P.S.: In CentOS7, I have to run docker with sudo (while not necessary in OSX).

For this issue to be considered closed (Done), you should make it work for CentOS 7.

mayburgos commented 4 years ago

No one is currently using Docker to run Portal. We're going to update our documentation so we don't have Docker setup instructions.