Open makiftasova opened 6 years ago
Mine is not solved yet
$ docker-compose build
master uses an image, skipping
game uses an image, skipping
Building init
Traceback (most recent call last):
File "site-packages/docker/utils/build.py", line 97, in create_archive
File "tarfile.py", line 1972, in addfile
File "tarfile.py", line 250, in copyfileobj
File "tempfile.py", line 481, in func_wrapper
OSError: [Errno 28] No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bin/docker-compose", line 6, in <module>
File "compose/cli/main.py", line 72, in main
File "compose/cli/main.py", line 128, in perform_command
File "compose/cli/main.py", line 303, in build
File "compose/project.py", line 403, in build
File "compose/project.py", line 385, in build_service
File "compose/service.py", line 1106, in build
File "site-packages/docker/api/build.py", line 160, in build
File "site-packages/docker/utils/build.py", line 31, in tar
File "site-packages/docker/utils/build.py", line 100, in create_archive
OSError: Can not read file in context: /home/pwn/PwnAdventure3/client/PwnAdventure3_Data/PwnAdventure3/PwnAdventure3/Binaries/Linux/PwnAdventure3Server
[1520] Failed to execute script docker-compose
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 597M 1008K 596M 1% /run
/dev/sda2 9.8G 9.2G 139M 99% /
tmpfs 7.0G 0 7.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.0G 0 7.0G 0% /sys/fs/cgroup
shared 466G 452G 14G 98% /home/pwn/shared
/dev/loop0 90M 90M 0 100% /snap/core/8268
/dev/loop1 94M 94M 0 100% /snap/core/9066
tmpfs 597M 0 597M 0% /run/user/1000
Same here, with 8Gb of temporal size.
when I issued
docker-compose build
after a few seconds I got the error below.and
After some digging, I find out docker-compose complains about the size of temp directory (which is mounted to
/tmp
and RAM backed in my case) (see: https://stackoverflow.com/q/38619286 )also
# mount -o remount,size=7G,noatime /tmp
was enough to solve the issue in my case. (I beleive docker-compose tries to create a temporary archive around 5GB and my default tmpfs size is 4GB)PS. onening this issue for future reference only, I've managed to run server on my old Asus k53sv with 8GB of RAM
OS: ArchLinux x86_64 (linux 4.17.2-1 & systemd 238.133-4) Docker Version: 18.05.0-ce build f150324782